Archive

Archive for the ‘rsync’ Category

Speed up file copying between hosts

June 7, 2011 Leave a comment

Here’s my test result with transferring a 1.8GB text file to a remote server:

1) scp data user@remote_server:/path/to
2 minutes 48 seconds

2) scp -C data user@remote_server:/path/to
2 minutes 14 seconds

3) rsync -z data user@remote_server:/path/to
1 minute 46 seconds

Method 1) doesn’t use compression at all.
Method 2) enables compression through scp’s -C option.
Method 3) uses rsync with -z (compression) and clearly this method provides the best performance.

Categories: file copy, linux, rsync