LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rsync not deleting folders on remote machine (https://www.linuxquestions.org/questions/linux-software-2/rsync-not-deleting-folders-on-remote-machine-667247/)

alexandersv 09-03-2008 02:07 AM

rsync not deleting folders on remote machine
 
While looking all over the internet I could not find an exact answer to my problem.

I am trying to synchronize Linux with Mac OS X over ssh. When I execute the following command after deleting a folder (from Documents folder) in the Linux computer (source):

rsync -avz --delete --exclude '.DS_Store' /home/alex/Documents/ Alex@192.168.1.101:"/Users/Alex/Documents/'Mis Documentos'/"

...all the information in the folder is deleted from the target machine (Mac OS X) but not the folder.

Any clue why?

billymayday 09-03-2008 02:44 AM

Try -m/--prune-empty-dirs and see if that works

alexandersv 09-03-2008 10:15 AM

It works fine now
 
Quote:

Originally Posted by billymayday (Post 3268052)
Try -m/--prune-empty-dirs and see if that works

Thanks for your reply.

I figured it out, the problem was: --exclude '.DS_Store'

Since only Mac OS generates those files, it is not necessary to exclude them when sending information from Linux to Mac.

The following revised string works fine:
rsync -avz --delete /home/alex/Documents/ Alex@192.168.1.101:"/Users/Alex/Documents/'Mis Documentos'/"


All times are GMT -5. The time now is 01:20 AM.