LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync not delete non existing files on remote server (https://www.linuxquestions.org/questions/linux-software-2/rsync-not-delete-non-existing-files-on-remote-server-668852/)

proNick 09-10-2008 03:04 AM

rsync not delete non existing files on remote server
 
hi all!

i need to synchronise files from server1 to server2.

but if i delete some files on server1, after rsync-ing they are not deleted from server2.

i'm using next syntax:

rsync -avz --delete /home/john/server1/* remote.server:/home/john/files/


can you help me where i'm wrong?

thank you in advance!

billymayday 09-10-2008 03:22 AM

What happens if you try

Code:

rsync -avz --delete /home/john/server1 remote.server:/home/john/files
(ie remove a /* and / at the end of the source/desination)

proNick 09-10-2008 03:47 AM

that's it! i just removed * after dir name, and it deletes files!


thank you!!!


All times are GMT -5. The time now is 12:31 PM.