How to transfer data: Difference between revisions
(Created page with "= Intro = = Linux and MacOS = == scp -- secure copy == * Manual page on-line: http://man7.org/linux/man-pages/man1/scp.1.html '''scp''' copies files between hosts on a net...") |
|||
Line 16: | Line 16: | ||
* Manual page on-line: http://man7.org/linux/man-pages/man1/rsync.1.html | * Manual page on-line: http://man7.org/linux/man-pages/man1/rsync.1.html | ||
'''Rsync''' is a fast and extraordinarily versatile file copying tool. | '''Rsync''' is a fast and extraordinarily versatile file copying tool. | ||
Line 23: | Line 24: | ||
'''Rsync''' is widely used for backups and mirroring and as an improved copy command for everyday use. | '''Rsync''' is widely used for backups and mirroring and as an improved copy command for everyday use. | ||
In practice, '''rsync''' is '''scp'' on steroids. | |||
In practice, '''rsync''' is '''scp''' on steroids. | |||
It is designed to '''synchronize''' two locations, that is to make them the same. | It is designed to '''synchronize''' two locations, that is to make them the same. | ||
So, if a transfer stops for some reason, if one restarts the transfer, '''rsync''' will check the destination | So, if a transfer stops for some reason, if one restarts the transfer, '''rsync''' will check the destination | ||
Line 29: | Line 31: | ||
This way, you can conveniently restart the transfer at any moment without loosing the progress. | This way, you can conveniently restart the transfer at any moment without loosing the progress. | ||
With '''scp''' this is not an option. | With '''scp''' this is not an option. | ||
== sftp -- secure file transfer protocol == | == sftp -- secure file transfer protocol == |
Revision as of 20:39, 22 April 2020
Intro
Linux and MacOS
scp -- secure copy
- Manual page on-line: http://man7.org/linux/man-pages/man1/scp.1.html
scp copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh.
In practical terms scp is a minimal and also sufficient transfer tool to copy files between network connected Unix based computers in a secure manner.
rsync -- Remote SYNCronizer
- Manual page on-line: http://man7.org/linux/man-pages/man1/rsync.1.html
Rsync is a fast and extraordinarily versatile file copying tool.
It can copy locally, to/from another host over any remote shell.
It is famous for its delta-transfer algorithm, which reduces the amount of data sent over
the network by sending only the differences between the source files and the existing files in the destination.
Rsync is widely used for backups and mirroring and as an improved copy command for everyday use.
In practice, rsync is scp on steroids.
It is designed to synchronize two locations, that is to make them the same.
So, if a transfer stops for some reason, if one restarts the transfer, rsync will check the destination
and only transfers what is needed.
This way, you can conveniently restart the transfer at any moment without loosing the progress.
With scp this is not an option.
sftp -- secure file transfer protocol
sftp is a file transfer program, similar to ftp, which performs all operations over an encrypted ssh transport. It may also use many features of ssh, such as public key authentication and compression.