Hi all,
I would like to ask your help as I try to understand how rsync works.
I was syncing some files to an external hard disk ($MOUNTPOINT) with the following line (runs through crontab)
Code:
rsync -rav -e ssh lka@server:/storage/disk1/ $MOUNTPOINT
I have found one day that the hard disk on the remote server lka@server:/storage/disk1/ was unmounted so the folder /storage/disk1 was showing an empty folder.
I then checked my files on my external hard disk ($MOUNTPOINT) and all the files were still there. I was expecting (and luckily that did not happen) rsync to sync the empty folder to the external hard disk ($MOUNTPOINT). Of course that would mean "deleting" the files ...
Can someone explain me why this did not happen?
I would like to thank you in advance for your reply
Regards
Alex