Home > file copy, linux, rsync > Speed up file copying between hosts

Speed up file copying between hosts

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.

Advertisements
Categories: file copy, linux, rsync
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: