Try ” rsync ” in linux

3 Nov


Remote file copy – Synchronize file trees across local disks, directories or across a network.


# Local file to Local file
rsync [option]… Source [Source]… Dest

# Local to Remote
rsync [option]… Source [Source]… [user@]host:Dest

rsync [option]… Source [Source]… [user@]host::Dest

# Remote to Local
rsync [option]… [user@]host::Source [Dest]

rsync [option]… [user@]host:SourceDest

rsync [option]… rsync://[user@]host[:PORT]/Source [Dest]

The rsync remote-update protocol allows rsync to transfer just
the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in
the technical report that accompanies this package.

Some of the additional features of rsync are:

# support for copying links, devices, owners, groups and permissions
# exclude and exclude-from options similar to GNU tar
# a CVS exclude mode for ignoring the same files that CVS would ignore
# can use any transparent remote shell, including rsh or ssh
# does not require root privileges
# pipelining of file transfers to minimize latency costs
# support for anonymous or authenticated rsync servers (ideal for mirroring)

There are six different ways of using rsync.
They are:

. Copy local files. This is invoked when neither source nor destination path contains a : separator

: Copying from the local machine to a remote machine using a remote shell program as the transport (such as rsh or ssh). This is invoked when the destination path contains a single : separator.

: Copy from a remote machine to the local machine using a remote shell program. This is invoked when the source contains a : separator.

:: Copy from a remote rsync server to the local machine. This is invoked when the source path contains a :: separator or a rsync:// URL.

:: Copy from the local machine to a remote rsync server. This is invoked when the destination path contains a :: separator.

List files on a remote machine. This is done the same way as rsync transfers except that you leave off the local destination.

Note that in all cases (other than listing) at least one of the source and destination paths must be local.


Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

%d bloggers like this: