I'm using BASH in the terminal on Yosemite.
Is the zip
command lossy?
I'm using it like this
zip -er ./output.zip ./input
-e encrypt
-r recurse
I am trying to avoid lossy compression when backing up data.
Would be super weak sauce if my backups came out corrupt :(
tar -czf output.tar.gz /input/dir
? My question then becomes, is G-Zip lossy? Thezip
command (according to man pages) is apparently not G-Zip. I'll bet there is a flag to use something other than G-Zip tho...-p
and--xattrs
to your tar command to preserve permissions and extended attributes. You don't have to use gzip. Look in the man page of tar (1), under the section "Compression options".