LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 07-13-2006, 09:13 AM   #1
ArchW
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Rep: Reputation: 15
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
 
Old 07-13-2006, 09:33 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,309

Rep: Reputation: 139Reputation: 139
Try --exclude=/share_FC5/backup/System Volume Information/*

and don't put the excluded material in quotes.
 
Old 07-13-2006, 09:44 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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".
 
Old 07-13-2006, 10:05 AM   #4
ArchW
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Original Poster
Rep: Reputation: 15
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
 
Old 07-13-2006, 10:17 AM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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.
 
Old 07-13-2006, 10:26 AM   #6
ArchW
LQ Newbie
 
Registered: Mar 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Cool...thanks for the help!

Arch
 
  


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 syntax to skip directory, but copy select files.. tnicol Linux - Software 3 07-24-2007 05:40 AM
gcc: installation problem, cannot exec `cc1': No such file or directory Error Message 08h Programming 2 07-20-2006 11:44 AM
SuSE error message on 'make' jimbrook Suse/Novell 2 05-08-2005 02:06 AM
Wine make help! error message included Jmcatch742 Linux - Software 0 11-17-2004 07:55 PM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM


All times are GMT -5. The time now is 01:46 PM.

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