[Cialug] rsnapshot problem with compression

Daniel A. Ramaley daniel.ramaley at drake.edu
Tue Jun 15 08:50:51 CDT 2010


On 2010-06-15 at 08:45:28, Matthew Nuzum wrote:
>As a matter of fact, I've not found anything that can transfer many
>files faster than one large file. Therefore if you've got disk space
>to spare I'd tar + bzip the initial sync, copy it with sftp and then
>use rsync on subsequent copies.

If you don't have the disk space, you can combine the tar/untar and the 
copying into one with no temporary file:

$ tar -cf - file1 file2 | ssh user at remote 'tar -xvf -'

If you want some compression, add "z" or "j" to both commands (depending 
on if you want gzip or bzip2). If the remote file should be extracted 
somewhere other than ~user, add "-C somedir" to the second tar command.

-- 
Daniel A. Ramaley
Network Engineer 2

Dial Center 118, Drake University
2407 Carpenter Ave / Des Moines IA 50311 USA
Tel: +1 515 271-4540
Fax: +1 515 271-1938
E-mail: daniel.ramaley at drake.edu


More information about the Cialug mailing list