LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync --delete question (https://www.linuxquestions.org/questions/linux-software-2/rsync-delete-question-371721/)

Red Squirrel 10-10-2005 08:54 PM

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.

homey 10-10-2005 09:38 PM

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

Red Squirrel 10-10-2005 09:55 PM

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.