Rsync and Compression

Ashish Ariga akariga at axes-mach01.usa.alcatel.com
Tue May 4 21:33:21 UTC 2004


On Wed, Apr 21, 2004 at 06:59:37AM +0100, WipeOut wrote:
> Hi,
> 
> I have created a script that will backup some files from my web server 
> to my local server via the internet.. I will be using Rsync over SSH..
> 
> I am unsure of the best way to impliment compression since bothe Rsync 
> and SSH have the ability to compress data..

It's better to let the application that has access to the largest
block of data to do the compression. Larger the chuck of data avail, more
are the chances of finding repeating patterns. I'm guessing in this case
it would be rsync...?


> The options are either to use rsync compression..
> 
> rsync -z --rsh=ssh ...
> 
> or ssh compression..
> 
> rsync -rsh="ssh -C" ...
> 
> My thinking is that the Rsync compression would probably only be 
> effective if I was communicating with an Rsync server but since I am not 
> it would probably be better to use the SSH compression since SSH is 
> providing the transport..

Rsync is still communicating with the rsync server, right?
Doesn't matter what transport is used.

> 
> Can someone confirm or deny this? or correct me if my thinking is flawed..
> 
> Thanks..
> 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

-- 
 -------------------------------------------------------
| When life hands you lemons, ask for tequila and salt. |
 -------------------------------------------------------





More information about the fedora-list mailing list