Rsync vs scp
- how to use rsync in linux
- how to use rsync command in linux
- how to use rsync to backup linux
- how to use rsync between windows and linux
Rsync copy directory recursively!
rsync command in Linux with Examples
rsync or remote synchronization is a software utility for Unix-Like systems that efficiently sync files and directories between two hosts or machines.
One is the source or the local-host from which the files will be synced, the other is the remote-host, on which synchronization will take place.
Rsync command in linux to copy directory
There are basically two ways in which rsync can copy/sync data:
- Copying/syncing to/from another host over any remote shell like ssh, rsh.
- Copying/Syncing through rsync daemon using TCP.
Rsync is famous for its delta-transfer algorithm, in which it copies only the differences between the source files present in the local-host and the existing files in the destination or the remote host.
Example:
rsync local-file user@remote-host:remote-fileWhat Happens Here:
Rsync will first use SSH to connect as the to remote-host and will ask for password.
Once connected, it will invoke the remote host’s rsync, and then the two programs will determine what parts of the local-file need to be copied so that the remote file mat
- how to use rsync from linux to windows
- how does rsync work in linux