LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to make RSYNC skip a directory due to error message (http://www.linuxquestions.org/questions/linux-networking-3/how-to-make-rsync-skip-a-directory-due-to-error-message-463650/)

ArchW 07-13-2006 10:13 AM

How to make RSYNC skip a directory due to error message
 
A while back, y'all gave me some help on how to use RSYNC to synch with a Windows drive and works great! I have one question:

First of all, I mount the the windows drive to the Fedora FC5 machine with this:

mount -t cifs //wareagle/sharedrive /share_FC5/backup -o username=tigers,password=alabama

Then I run RYCYNC with this command:

rsync -urpt --exclude="/share_FC5/backup/System Volume Information/" --delete-after /share_FC5/backup /share_FC5/TUP/share/

It works but it still gives the error:
rsync: readdir("/share_FC5/backup/System Volume Information"): Permission denied (13)
IO error encountered -- skipping file deletion


I assume that somewhere I am gettign the exclude stuff wrong....any ideas?

Thanks!

Arch

kilgoretrout 07-13-2006 10:33 AM

Try --exclude=/share_FC5/backup/System Volume Information/*

and don't put the excluded material in quotes.

Matir 07-13-2006 10:44 AM

Quote:

Originally Posted by kilgoretrout
Try --exclude=/share_FC5/backup/System Volume Information/*

and don't put the excluded material in quotes.

Because of the spaces in System Volume Information, the quotes are required. The big pitfall here is that your path is relative to the system's root, rather than the rsync root. The correct path would be "/System Volume Information".

ArchW 07-13-2006 11:05 AM

Here is what I have (I started tryign Kilgore's stuff before I got to Matir's):

--exclude=/share_FC5/backup/System Volume Information/*
Becuse of the spaces, it had a problem

I tried:

--exclude="/share_FC5/backup/System Volume Information/*"
Got the same error

I tried:

--exclude="/System Volume Information/*"
Got the same error

I tried:

--exclude="/System Volume Information"
Got the same error


I tried:

--exclude="/System Volume Information"
Got the same error


--exclude="backup/System Volume Information/*"
Got the same error

--exclude="backup/System Volume Information"
THAT WORKED!!!!


Arch

Matir 07-13-2006 11:17 AM

Ah, oops. Yeah. Had there been a / after backup in the rsync source path, I think mine would've worked. If I recall correctly, it starts at the last "/" in the rsync source path.

ArchW 07-13-2006 11:26 AM

Cool...thanks for the help!

Arch


All times are GMT -5. The time now is 12:48 AM.