LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-14-2005, 11:53 AM   #1
steelhead79
LQ Newbie
 
Registered: Jan 2005
Location: Oregon, US
Posts: 4

Rep: Reputation: 0
Question rsync exclude list


I can not get rsync to actually exclude the directories in my --exclude-from=file. I have read the man pages and scoured this forum but have not been able to find something that works?

I have added each exclusion to it's own line in the format of -/directory/* to exclude that directory but it still ends up being backed up to my rsync server. While rsync is running I see that [receiver] add_exclude (-/directory/*, exclude) is shown as the command is run but this directory still shows up on the rsync server.

Any help would be greatly appreciated as I have no idea what I am doing wrong.
 
Old 01-14-2005, 12:49 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
I use the command: ls > list to create my exclude list. Then I edit it to add any subdirectories which I want excluded.
rsync -avz -e ssh --delete-after --exclude-from=list /home root@sony:/mnt/backup

Here's what the list may look like ...
Code:
backup
cdbuild/KNOPPIX
cdbuild/INSERT
cdbuild/base
cdbuild/images
distros
mudd
list
netlogon
fred
samba
 
Old 01-14-2005, 01:02 PM   #3
steelhead79
LQ Newbie
 
Registered: Jan 2005
Location: Oregon, US
Posts: 4

Original Poster
Rep: Reputation: 0
So do you not put the - in front of the directories that you want to exclude? From the man pages I thought that this was necessary, but this may be the cause of my exclude list not working as I have been adding it in front of every directory that I am trying to exclude?

Thanks for the help.
 
Old 01-14-2005, 01:10 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Nope, my list looks just like that.
 
  


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
exclude directory with cp hampel Linux - Software 3 06-04-2009 12:59 PM
CHMOD with an exclude? nicedreams Linux - General 3 10-21-2005 03:03 PM
tar --exclude --exclude-from cefn Linux - Software 4 10-11-2005 08:31 PM
Windows Rsync Upload to Linux Rsync - permissions inspleak Linux - Software 0 10-12-2004 03:49 PM
Using the exclude option absolutely with rsync karlovac Programming 0 03-01-2004 01:39 PM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
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