background preloader

Program

Facebook Twitter

Home Page. How to Backup Linux? 15 rsync Command Examples. Rsync stands for remote sync. rsync is used to perform the backup operation in UNIX / Linux. rsync utility is used to synchronize the files and directories from one location to another in an effective way. Backup location could be on local server or on remote server. Important features of rsync Speed: First time, rsync replicates the whole content between the source and destination directories. Syntax $ rsync options source destination Source and destination could be either local or remote. Example 1. To sync two directories in a local computer, use the following rsync -zvr command. $ rsync -zvr /var/opt/installation/inventory/ /root/temp building file list ... done sva.xml svB.xml . sent 26385 bytes received 1098 bytes 54966.00 bytes/sec total size is 44867 speedup is 1.63 $ In the above rsync example: -z is to enable compression -v verbose -r indicates recursive Now let us see the timestamp on one of the files that was copied from source to destination.

Example 2. Example 3. Example 4. Reference. Chop – Post code, write notes and share feedback. Code Snippets - Snipplr Social Snippet Repository.

Term, Script, CLI, IDE

Scripting. FFMPEG. Terminal. Web,HTML,CSS,JS. C & C++ Tutorials. Java.