X7ROOT File Manager
Current Path:
/usr/share/doc/rsync-3.1.2/support
usr
/
share
/
doc
/
rsync-3.1.2
/
support
/
📁
..
📄
Makefile
(80 B)
📄
atomic-rsync
(3.9 KB)
📄
cvs2includes
(1.18 KB)
📄
deny-rsync
(997 B)
📄
file-attr-restore
(4.82 KB)
📄
files-to-excludes
(534 B)
📄
git-set-file-times
(910 B)
📄
instant-rsyncd
(2.72 KB)
📄
logfilter
(1.07 KB)
📄
lsh
(2.21 KB)
📄
lsh.sh
(956 B)
📄
mapfrom
(629 B)
📄
mapto
(621 B)
📄
mnt-excl
(1.8 KB)
📄
munge-symlinks
(1.43 KB)
📄
rrsync
(7.07 KB)
📄
rsync-no-vanished
(267 B)
📄
rsync-slash-strip
(643 B)
📄
rsyncstats
(8.56 KB)
📄
savetransfer.c
(4.45 KB)
Editing: files-to-excludes
#!/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";
Upload File
Create Folder