Lancashire, Pete
2007-Jan-28 20:23 UTC
has this been asked about before ? multilple exclude files
I'm was wondering if this has been asked about/for multiple exclude-from files ? Where I could find this useful is say I had a common or base exclusion list for all my AIX boxes --exclude-from=/foo/aix_base Then be able to add for say all my AIX boxes that are running SAP --exclude-from=/foo/aix_base --exclude-from=/foo/sap or --exclude-from=/foo/aix-base,/foo/sap and so on ... -pete
Jannes Faber
2007-Jan-28 21:10 UTC
has this been asked about before ? multilple exclude files
One tip I got when asking for something similar is this trick: rsync -a -e "ssh -i /etc/webackup.d/ssh/id_dsa" --recursive --compress --numeric-ids --modify-window=1 --timeout=120 --files-from=- --partial --partial-dir='/webackup/host/linux/partial' --link-dest='/webackup/host/linux/2007-01-27 02.00.02' --filter='. /dev/fd/3' -vi --stats -h root@192.168.10.123:'/' '/webackup/host/linux/2007-01-28 02.00.01' << ENDFILES 3<< ENDFILTER etc usr/local/bin usr/local/sbin var/spool/cron ENDFILES . /etc/webackup.d/filters/default . /etc/webackup.d/filters/default.linux - mrtg - adjtime - statistics - random_seed - mtab - ioctl.save - aliases.db - printcap - secrets.tdb - .thumbnails ENDFILTER Notice how both --files-from and --filter are directed from heredoc texts. The filter "includes" two other filter files: default and default.linux -- Jannes Faber On 1/28/07, Lancashire, Pete <plancashire@ci.portland.or.us> wrote:> > I'm was wondering if this has been asked about/for > > > multiple exclude-from files ? Where I could find this > useful is say I had a common or base exclusion list > for all my AIX boxes --exclude-from=/foo/aix_base > > Then be able to add for say all my AIX boxes that are > running SAP > > --exclude-from=/foo/aix_base --exclude-from=/foo/sap > > or > > --exclude-from=/foo/aix-base,/foo/sap > > and so on ... > > -pete >-------------- next part -------------- HTML attachment scrubbed and removed
Matt McCutchen
2007-Jan-28 21:12 UTC
has this been asked about before ? multilple exclude files
On 1/28/07, Lancashire, Pete <plancashire@ci.portland.or.us> wrote:> multiple exclude-from files ?Yes, rsync supports as many exclude-from files as you want. You even guessed the correct syntax:> --exclude-from=/foo/aix_base --exclude-from=/foo/sapMatt
Lancashire, Pete
2007-Jan-28 23:37 UTC
has this been asked about before ? multilple exclude files
thanks, swore I had tested it :( -pete .. time to read the man page (again)> -----Original Message----- > From: Matt McCutchen [mailto:hashproduct+rsync@gmail.com] > Sent: Sunday, January 28, 2007 1:12 PM > To: Lancashire, Pete > Cc: rsync@lists.samba.org > Subject: Re: has this been asked about before ? multilple > exclude files > > > On 1/28/07, Lancashire, Pete <plancashire@ci.portland.or.us> wrote: > > multiple exclude-from files ? > > Yes, rsync supports as many exclude-from files as you want. You even > guessed the correct syntax: > > > --exclude-from=/foo/aix_base --exclude-from=/foo/sap > > Matt >