Rsync 远程传输文件

Rsync (Remote Sync): 10 Practical Examples of Rsync Command in Linux

 

不要再用scp了,用rsync!

Copy/Sync Files and Directory to or From a Server
rsync -avz rpmpkgs/ root@192.168.0.101:/home/
Copy/Sync a Remote Directory to a Local Machine
rsync -avzh root@192.168.0.100:/home/tarunika/rpmpkgs /tmp/myrpms
Copy a File from a Remote Server to a Local Server with SSH
 rsync -avzhe ssh root@192.168.0.100:/root/install.log /tmp/
Copy a File from a Local Server to a Remote Server with SSH
 rsync -avzhe ssh backup.tar root@192.168.0.100:/backups/
Advertisements

发表评论

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 / 更改 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s