Weblog entry #391 for simonw
#391
GZIP environment variable
Posted by simonw on Tue 31 Aug 2010 at 17:24
Note for self:
export GZIP="--rsyncable"
Makes sense for a lot of the backup scripts we have.
I knew gzip had an "rsyncable" option, but I never thought to check if gzip accepted an environment variable since I'm too lazy to set this everywhere it is needed. I'm tempted to add this to "/etc/profile", is that likely to break anything?
export GZIP="--rsyncable"
Makes sense for a lot of the backup scripts we have.
I knew gzip had an "rsyncable" option, but I never thought to check if gzip accepted an environment variable since I'm too lazy to set this everywhere it is needed. I'm tempted to add this to "/etc/profile", is that likely to break anything?
Comments on this Entry
It may be worth mentioning that this is a Debian-only extension.
[ Parent | Reply to this comment ]
I think you should never use gzip for backup-purposes. It is simply not good format if you need to restore file which has one bad block. Because this you should use bzip2 or another smarter compressionformats instead.
[ Parent | Reply to this comment ]
huh? what?
[ Parent | Reply to this comment ]