LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-03-2008, 02:07 AM   #1
alexandersv
LQ Newbie
 
Registered: Sep 2007
Location: San Josť (CR)
Distribution: Ubuntu 8.04
Posts: 6

Rep: Reputation: 0
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?
 
Old 09-03-2008, 02:44 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try -m/--prune-empty-dirs and see if that works
 
Old 09-03-2008, 10:15 AM   #3
alexandersv
LQ Newbie
 
Registered: Sep 2007
Location: San Josť (CR)
Distribution: Ubuntu 8.04
Posts: 6

Original Poster
Rep: Reputation: 0
It works fine now

Quote:
Originally Posted by billymayday View Post
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'/"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync keeps deleting another dir subzero80 Linux - Software 8 01-15-2008 03:14 PM
Mount remote folders into local Ubuntu machine (sshfs) nthillaiarasu Ubuntu 1 01-06-2008 03:12 AM
Complicated one: MySQL, rsync, remote machine, local machine daiver Linux - General 2 02-27-2006 12:14 PM
rsync Syntax Question for Connecting to Remote Windows Machine Linux31 Linux - Networking 3 10-09-2005 02:55 PM
rsync not deleting bwilliam79 Linux - Software 1 10-04-2004 05:22 PM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration