Mailinglist Archive: opensuse (3100 mails)

< Previous Next >
Re: [SLE] exclude folder to backup with rsync
----- Original Message ----- From: "Marc Collin" <collinm@xxxxxxxxxxxxxxxx>


Le Mercredi 29 Mars 2006 21:21, david rankin a écrit :


Hope that helps......


i already read the man page...... and i don't find very usefull

very complex to do a so easy thing...


Marc,

I actually do what you are trying to do, but I approach it from the other direction. I set up a script that makes use of the --files-from= option to tell rsync what directories to "include" rather than trying to "exclude" things with a pattern. Don't know how many directories your dealing with, but this is how I do it:

david@nemesis:~> cat Documents/scripts/rsyncwork
#!/bin/bash
rsync -arvze ssh --delete --files-from=/home/david/Documents/scripts/workfiles david@xxxxxxxxxx:/home/samba/ /home/samba/law
david@nemesis:~> cat Documents/scripts/workfiles
office
rankin
joint/rankinguillory
joint/rankinbertin
forms
computer/hardware
computer/software
closed/rankin
closed/rb
closed/rg


--
David C. Rankin, J.D., P.E.
RANKIN LAW FIRM, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
(936) 715-9333
(936) 715-9339 fax
www.rankinlawfirm.com
--


< Previous Next >
Follow Ups