Thursday 9 December 2021

10 Practical Examples of Rsync Command in Linux

 https://www.tecmint.com/rsync-local-remote-file-synchronization-commands/

 

1. Copy/Sync Files and Directory Locally

Rsync Local Files

 

2. Copy/Sync a Directory on Local Computer

Rsync Local Directory


3. Copy/Sync Files and Directory to or From a Server

Rsync Directory Remote System 

4. Rsync Over SSH

Rsync Copy Remote File to Local


Rsync Copy Local File to Remote

 

5. Show Progress While Transferring Data with rsync

Rsync Progress While Copying Files

 

6. Use of –include and –exclude Options

Rsync Include and Exclude Files 

7. Use of –delete Option

If a file or directory does not exist at the source, but already exists at the destination, you might want to delete that existing file/directory at the target while syncing.
Rsync Delete Option 

8. Set the Max Size of Files to be Transferred

this command will transfer only those files which are equal to or smaller than 200k.

Rsync Set Max File Transfer Size 

9. Automatically Delete source Files After Successful Transfer

Rsync Delete Source File After Transfer

No comments:

Post a Comment