
If you only want to copy the contents of a directory, without creating a directory of that name on the target, add a trailing slash: rsync -hrtplu path/to/local/foo/ will copy the contents of foo/ into the remote directory bar/. To move files, use the mv command (man mv), which is similar to the cp command, except that with mv the file is physically moved from one place to another. A new subdirectory named bar/foo will be created. Rsync is widely usedįor backups and mirroring and as an improved copy command forĪssuming you have ssh access to the remote machine, you would want to do something like this: rsync -hrtplu path/to/local/foo will copy the directory path/to/local/foo to /path/to/remote/bar on the remote server.

Rithm, which reduces the amount of data sent over the networkīy sending only the differences between the source files and scp is a command-line utility offered by Linux which allows the transfer of files and directories from one machine to another. If you need to make one-to-one copy of actually disk, use dd or something like that, to create raw image of disk. It will be better to copy data on HDD and move them between server. It is famous for its delta-transfer algo‐ rsync over NFS using Gigabit connection will took nearly about 10h. Large number of options that control every aspect of itsīehavior and permit very flexible specification of the set ofįiles to be copied. Remote shell, or to/from a remote rsync daemon. It can copy locally, to/from another host over any Just to flesh out Simon's answer, rsync is the perfect tool for the job: Rsync is a fast and extraordinarily versatile file copying
