/usr/share/doc/rsync/support
NameSizeModeActions
atomic-rsync39950644editdlrm
cvs2includes12120644editdlrm
deny-rsync9970644editdlrm
file-attr-restore49320644editdlrm
files-to-excludes5340644editdlrm
git-set-file-times9100644editdlrm
instant-rsyncd27830644editdlrm
logfilter11000644editdlrm
lsh22590644editdlrm
lsh.sh9560644editdlrm
Makefile800644editdlrm
mapfrom6290644editdlrm
mapto6210644editdlrm
mnt-excl18440644editdlrm
munge-symlinks14620644editdlrm
rrsync72390644editdlrm
rsync-no-vanished2670644editdlrm
rsync-slash-strip6430644editdlrm
rsyncstats86870644editdlrm
savetransfer.c45600644editdlrm
Edit: /usr/share/doc/rsync/support/files-to-excludes (534B)
#!/usr/bin/perl # This script takes an input of filenames and outputs a set of # include/exclude directives that can be used by rsync to copy # just the indicated files using an --exclude-from=FILE option. use strict; my %hash; while (<>) { chomp; s#^/+##; my $path = '/'; while (m#([^/]+/)/*#g) { $path .= $1; print "+ $path\n" unless $hash{$path}++; } if (m#([^/]+)$#) { print "+ $path$1\n"; } else { delete $hash{$path}; } } foreach (sort keys %hash) { print "- $_*\n"; } print "- /*\n";