# Utiliser TarWriter pour streamer une sauvegarde

**URL:** <https://meta.discourse.org/t/using-tarwriter-to-stream-backup/78909>\
**Category:** Development\
**Tags:** performance, backups\
**Created:** [Janvier 24, 2018, 8:54 UTC](https://meta.discourse.org/t/using-tarwriter-to-stream-backup/78909 "2018-01-24T20:54:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [Janvier 25, 2018, 1:00 UTC](https://meta.discourse.org/t/using-tarwriter-to-stream-backup/78909/3 "2018-01-25T01:00:16Z")

</div>

I am open to optimising this stuff, but we have to be careful around compatibility.

As a general approach I would like us

backup db as sql \> stream to gzip \> stream to tar  
backup files \> stream to cheapest gzip \> stream to same tar

This can be done by shelling out or by using a Ruby gem

---

_[View the full topic](https://meta.discourse.org/t/using-tarwriter-to-stream-backup/78909)._
