rsync --delete question
This deletes files only in the DESTINATION right? I just want to make sure! My command is:
rsync -vrbu --delete ${mount_path} ${backup_dest} Just want to make sure, since it has write access to both paths and I would not want a disaster that I only notice later on. |
Yep, that deletes files on the receiving side that don't exist on the sending side
I use --delete-after but that's just my preference. --delete delete files that don't exist on the sending side --delete-before receiver deletes before transfer (default) --delete-during receiver deletes during transfer, not before --delete-after receiver deletes after transfer, not before |
Oh ok, so delete-after makes sure the transfer finished, I might want to go do that too then.
|
All times are GMT -5. The time now is 09:48 PM. |