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: rsync-slash-strip
#!/bin/bash # This script can be used as an rsync command-line filter that strips a single # trailing slash from each arg. That treats "src/" the same as "src", thus # you need to use "src/." or "src//" for just the contents of the "src" dir. # (Note that command-line dir-excludes would need to use "excl//" too.) # # To use this, name it something like "rs", put it somewhere in your path, and # then use "rs" in place of "rsync" when you are typing your copy commands. args=() for arg in "${@}"; do if [[ "$arg" == / ]]; then args=("${args[@]}" /) else args=("${args[@]}" "${arg%/}") fi done exec /usr/bin/rsync "${args[@]}"
Upload File
Create Folder