Syntax
To sync some of your local directories to another local directory, you can use the following syntax:
rsync -av -L --delete <DIR1>[[ <DIR2>] <DIRn>] <DESTINATION_DIR>
Token | Description |
DIR1, DIR2, DIRn | These are the local directories you've wanted to be synced. Only DIR1 is required and the rest are optional. |
DESTINATION_DIR | The destination directory on the remote machine. |
Example
rsync -av -L --delete /var/log/ /data/log/
Leave a Reply