Pipe to tar or other compressor

Peter <[email protected]>
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <[email protected]>
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 [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.