Linux‎ > ‎

~Copying Files Using rsync

#Compared to SCP, RSYNC compares the data on the sending and receiving sides with a diff mechanism so it doesn't have to resend data that was already previously sent.

rsync -av /dir/filename  remoteserver:/dir/filename

rsync -av /dir/  remoteserver:/dir/

# You can also specify the username to use.

rsync -av /dir/filename  user@remoteserver:/dir/filename

#With the above method rsync transparently calls SSH, which encryptseverything, and uses SSH's native authentication mechanisms.