Simple rsync command
2017.01.11
linuxrsyncclibackup
Sync a directory to a remote host — no trailing slash on the source or you’ll miss a level:
rsync -aP /home/user/data user@192.168.1.100:/home/user/
Useful flags:
--delete remove files on dest that no longer exist on src
--dry-run preview without making changes
-a archive mode (recursive, preserves permissions/timestamps)
-P show progress + keep partial transfers