/usr/share/doc/rsync/support
#!/usr/bin/env 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";
.
Edit
..
Edit
Makefile
Edit
atomic-rsync
Edit
cvs2includes
Edit
deny-rsync
Edit
file-attr-restore
Edit
files-to-excludes
Edit
git-set-file-times
Edit
instant-rsyncd
Edit
logfilter
Edit
lsh
Edit
lsh.sh
Edit
mapfrom
Edit
mapto
Edit
mnt-excl
Edit
munge-symlinks
Edit
nameconvert
Edit
rrsync
Edit
rrsync.1.md
Edit
rsync-no-vanished
Edit
rsync-slash-strip
Edit
rsyncstats
Edit
savetransfer.c
Edit