logisticssraka.blogg.se

Rsync file synchronization
Rsync file synchronization





rsync file synchronization

v Verbose mode, this option increases the amount of information you are given during the transfer. delete This tells rsync to delete extraneous files from the receiving side (ones that aren't on the sending side), but only for the directories that are being synchronized.

rsync file synchronization

#RSYNC FILE SYNCHRONIZATION ARCHIVE#

Common Options -a recursive, archive mode (you want to preserve almost everything). Extra care should be used when invoking this option. This essentially deletes anything on the remote machine that doesn't exist on the local machine. Rsync -aze 'ssh -p 1357' -delete /path_to_directory/ this case the -delete option was used. Rsync -aze 'ssh -p 1234' /home/user_name/file_name this case the file on the local machine (file_name) will be saved on the remote machine in the location /home/user_name/directory_name/file_name To copy a directory from a local machine to a remote machine using alternate port 1357 - you would use the following: To copy a file from a local machine to a remote machine using alternate port 1234 - you would use the following: The general form used for command line rsync is as follows: Rsync can copy or display directory contents and copy files, optionally using compression and recursion. Rsync is a free software computer program for Unix systems which synchronizes files and directories from one location to another while minimizing data transfer using delta encoding when appropriate.







Rsync file synchronization