rsync
I read the article on SCP because I was looking for a tool I used in the past - which ended up being rsync. I am going to read the wikipedia article on rsync to hopefully improve my ability to transfer files between a client and remote server.
References
Notes
rsync (remote sync) is a utility for transferring and synchronizing files between a computer and a storage drive across networked computers by comparing the modification times and sizes of files.
- Commonly found in Unix operating systems
- Written in C as a single threaded application
- Typically used for synchronizing files and directories between two file systems
$ rsync local-file user@remote-host:remote-file
- When the above is run,
- rsync will use SSH to connect as
user
toremote-host
- It will then invoke the remote host's rsync and then the two programs will determine what parts of the local file need to be transferred so that the remote file matches the local one
- rsync will use SSH to connect as
$ rsync [OPTION] ... SRC [HOST@]HOST:DEST
$ rsync [OPTION] ... [USER@]HOST:SRC [DEST]
where SRC is the file or directory to copy from, DEST is the file or directory to copy to, and square brackets indicate optional parameters.