Peter
2011-10-16 08:50:57 UTC
How do you pipe to something that will compress well?
Ive tried this:
mysqldump {opts} | 7za a -t7z -an -si -so > outfile.7z
doesnt work becasue 7z needs to seek
mysqldump {opts} | 7za a -txz -an -si -so > outfile.7z
doesnt work becasue 7za doesnt recognise xz
mysqldump {opts} | tar -cf --xz - > outfile.7z
ditto
mysqldump {opts} | tar -cf --lzma - > outfile.7z
doesnt work because tar expects a directory
two steps works for the last method , but this is linux it must be doable in one step?
Peter
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Ive tried this:
mysqldump {opts} | 7za a -t7z -an -si -so > outfile.7z
doesnt work becasue 7z needs to seek
mysqldump {opts} | 7za a -txz -an -si -so > outfile.7z
doesnt work becasue 7za doesnt recognise xz
mysqldump {opts} | tar -cf --xz - > outfile.7z
ditto
mysqldump {opts} | tar -cf --lzma - > outfile.7z
doesnt work because tar expects a directory
two steps works for the last method , but this is linux it must be doable in one step?
Peter
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug