Re: Pipe to tar or other compressor

David L Neil <[email protected]> Mon, 17 Oct 2011 14:53:55 +1300
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <[email protected]>
>>> FTR the solution adopted is:
>>> /usr/bin/mysqldump {etc} > /home/tasks/backup/clientname-db-backup
>>> /bin/bzip2 -f /home/tasks/backup/clientname-db-backup
>>
>> =it trades storage space for simplicity and indeed faster recovery from
>> some failure in step two!
>>
>> =does this also mean that you have performed side-by-side comparison on
>> a range of compression algorithms/pgms and settled on bzip2 for
>> MySQLdump/ASCII files?
>> (instead of (my-traditional) tar...)
>>
> Does tar compress? tar with -z does, but I thought that it just used
> gzip with the -z option.

=apologies:
my description of current practice was slightly misleading and has 
unfortunately distracted people from the pertinent question and the OP's 
topic and objective (from which I'd like to benefit).

=so to clarify:
my using tar does NOT have the specific objective of compression. It 
conveniently creates one handy tar-ball of a set of dump-files. I 
probably copied this idea from 'somewhere', eg a book; without thinking 
through the next/obvious further possibility, as raised by the OP...

=and now, back to my actual request:
has anyone checked which compression tool might do better than 'the 
others' when working on the likes of MySQLdump files?
(and ideally (and diverging from the OP's spec), I'd prefer that it to 
work on a set of files not just one at a time)

-- 
Regards,
=dn

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug