How to copy just some subdirectories using filter rules
Iñaki Baz Castillo
ibc at aliax.net
Tue Nov 9 11:06:12 MST 2010
2010/11/9 <edacval at gmail.com>:
> sync -vva --force --delete-excluded -f 'merge /etc/backup.filter' \
> 99.99.99.99:/ /home/server_backup/
>
> /etc/backup.filter:
> #-------------------#
> + /etc/
> + /usr/
> + /usr/local/
> - /usr/*
> + /usr/local/etc/
> + /usr/local/bin/
> + /usr/local/sbin/
> - /usr/local/*
> - /*
> #------------------#
Just great!
Thanks a lot.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the rsync
mailing list