LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2011, 02:19 AM   #1
Lew Teng Han
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
rsync --exclude-from qns


I'm trying to do a sync of the root home directory to a folder call backup and excluding some files.

This is wat i executed:

rsync -a /root/ --exclude-from '/root/rules.txt' /root/backup/

My rules.txt is as below:
- anaconda-ks.cfg

Somehow it doesnt read the rules.txt and it will always include the anaconda-ks.cfg file.

Anyone can help me?
 
Old 01-08-2011, 05:39 AM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
Hi
if you use
Code:
- anaconda-ks.cfg
use
Code:
anaconda-ks.cfg
instead.
 
Old 01-16-2011, 07:24 AM   #3
Lew Teng Han
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Tks alot. It Worked. Do i do the same for folders?
 
Old 01-17-2011, 04:57 AM   #4
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
In one word: yes.
Just give it a try.
 
  


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
help with rsync exclude files Red Squirrel Linux - Software 4 03-03-2009 10:54 AM
help with rsync exclude syntax please JacekZ Linux - General 2 07-08-2007 01:23 PM
What files to exclude when using rsync TongueTied Linux - General 2 07-20-2006 08:39 PM
can't get rsync exclude files Batta Linux - Newbie 1 03-27-2006 10:39 PM
rsync exclude list steelhead79 Linux - Software 3 01-14-2005 12:10 PM


All times are GMT -5. The time now is 08:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration