24 lines
548 B
Bash
Executable File
24 lines
548 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
if [ "$1" == "no-progress" ]; then
|
|
shift
|
|
else
|
|
PROG=--progress
|
|
fi
|
|
|
|
if [ "$1" == "xxx" ]; then
|
|
shift
|
|
/usr/bin/rsync -av --inplace --append-verify --exclude=.\*.parts $PROG $* /mnt/ssd/deluge/xxx hrat:tmp/x
|
|
exit
|
|
fi
|
|
|
|
if [ ! -z "$*" ]; then
|
|
for i in "$@"; do
|
|
/usr/bin/rsync -av --chmod=o+rX 644 --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/"
|
|
done
|
|
else
|
|
/usr/bin/rsync -av --chmod=o+rX --inplace --append-verify $PROG /mnt/ssd/deluge/done hrat:tmp/tmp
|
|
fi
|
|
|
|
|