Anyone play with rsync much?

Terry Tanski ttanski-iRg7kjdsKiH3fQ9qLvQP4Q at public.gmane.org
Tue May 18 16:51:26 UTC 2004


On Tue, 18 May 2004, Madison Kelly wrote:

>    I want to use 'rsync' to backup a partition and I plan(ned) to use 
> the '--exclude-from="/path/to/foo"' and '--exclude-from="/path/to/bar"' 
> options to build the list of files to exclude (foo) and (I hope) the 
> exceptions to the excludes (bar).
> 
>    For example, Say I want to -not- backup '/home' except for the one 
> directory '/home/madison' I was thinking I could add '/home' to 'foo' 
> and then add '/home/madison' to 'bar'. This doesn't work though, the 
> '--exclude-from' seems to always take precedence regardless of where I 
> call it. Does anyone have a tip or suggestion on how I could go about 
> this? Thanks!!

foo file should read: /home/*
bar file shold read: /home/madison

The * above is important. The rsync line then would be:

rsync --include-from=bar --exclude-from=foo

Terry

-- 

  Terry Tanski, B.Sc.               Phone: (416) 863-2126
  Canada NewsWire Ltd.              Fax: (416) 863-4825
  20 Bay Street, Suite 1500         Email: ttanski-BEj8/MhvOJIsA/PxXw9srA at public.gmane.org
  Toronto, ON  M5J 2N8              Web: http://www.newswire.ca

--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list