Re: Pipe to tar or other compressor
Peter <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Message-ID | <[email protected]> |
Yes well that was my original solution but the archive is now over the 20MB email limit, and 7z /lzma reduces it to 5MB (not bad for a 100MB dump), hence my reason to avoid gzip.
Cheers
Peter
adley Rich wrote:
> On 16/10/11 21:50, Peter wrote:
>> How do you pipe to something that will compress well?
>>
>> Ive tried this:
>>
> [...]
>> mysqldump {opts} | tar -cf --lzma - > outfile.7z
>>
>> doesnt work because tar expects a directory
>
> mysqldump {opts} | gzip > foo.sql.gz
>
> hads
_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug