# 通过不(重复)对备份进行gzip压缩，减少本地磁盘空间需求

**URL:** https://meta.discourse.org/t/reduce-local-disk-space-needs-by-not-redundantly-gzipping-backups/245763
**Category:** Feature
**Tags:** backups
**Created:** [2022年十一月16日 12:38 UTC](https://meta.discourse.org/t/reduce-local-disk-space-needs-by-not-redundantly-gzipping-backups/245763 "2022-11-16T12:38:03Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2024年八月30日 22:06 UTC](https://meta.discourse.org/t/reduce-local-disk-space-needs-by-not-redundantly-gzipping-backups/245763/11 "2024-08-30T22:06:33Z")

</div>

> [@Ed\_S](#):
>
> 如果使用了子 shell，tar 的输出可以被管道传输到 gzip。但实际上我认为可能正在使用一些更高级的 Ruby 函数。

_咳咳_

> <https://github.com/discourse/discourse/blob/7b89fdead98606d4f47ceb0a1d240d0f6e5f589e/lib/compression/tar.rb#L13-L21>

---

_[View the full topic](https://meta.discourse.org/t/reduce-local-disk-space-needs-by-not-redundantly-gzipping-backups/245763)._
