has this been asked about before ? multilple exclude files
Jannes Faber
j.faber at elevate.nl
Sun Jan 28 21:09:45 GMT 2007
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 at 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 at 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
More information about the rsync
mailing list