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? |
Try -m/--prune-empty-dirs and see if that works
|
It works fine now
Quote:
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. |