This shows you the differences between two versions of the page.
| |
— | linux:shell_commands:rsync_backup [2019/10/31 09:05] (current) – created - external edit 127.0.0.1 |
---|
| ====== Rsync mirror folders ====== |
| <code>rsync -av --delete --log-file=/home/user/logs/backup_$(date +%Y%m%d).log /server/Pictures /raid/Pictures/</code> |
| * /server/Pictures copies the Pictures folder |
| * /server/Pictures/ copies the contents od the Pictures folder |
| |
| * /raid/Pictures/ copies into the Pictures folder |
| * /raid/Pictures creates a Pictures folder and copies into it |
| |
| |
| <code>rsync --delete --update -hrvPt /mnt/source/ /home/user/Destination/</code> |