Rsync tricks

To backup an entire dir in a backup disk

rsync -auv /home/user/dirname/ /media/user/backupdisk/dirname/

note the / at the end of every dirname!

rsync a disk that was entirely copied into a dir

rsync -auv /media/user/UID-OF-THE-DISK-OR-MOUNTPOINT/ /media/user/backupdisk/DIR-NAME-OF-DISK-BACKUP

Example: 

rsync -auv /media/asbesto/4329823984284234234/ /media/asbesto/BACKUP2TB/tonino 

In this case note the missing / on the destination dir!!!

TrucchiRsync (last edited 2018-10-14 18:45:55 by asbesto)