New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

Your preferred Interactive shell?









( 1371 votes ~ 15 comments )

 

Weblog entry #391 for simonw

GZIP environment variable
Posted by simonw on Tue 31 Aug 2010 at 17:24
Tags: none.
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?

 

Comments on this Entry

Posted by mcortese (20.142.xx.xx) on Thu 2 Sep 2010 at 18:16
[ Send Message | View Weblogs ]
It may be worth mentioning that this is a Debian-only extension.

[ Parent | Reply to this comment ]

Posted by Tuipveus (85.131.xx.xx) on Sun 5 Sep 2010 at 07:11
[ Send Message ]
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 ]

Posted by Alucard (24.147.xx.xx) on Mon 6 Sep 2010 at 01:21
[ Send Message | View Weblogs ]
huh? what?

[ Parent | Reply to this comment ]

 

 

Flattr