upload.ready.deluge.sh add g+rX
This commit is contained in:
@@ -1,16 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -x
|
set -x
|
||||||
if [ "$1" != "no-progress" ]; then
|
if [ "$1" == "no-progress" ]; then
|
||||||
PROG=--progress
|
|
||||||
else
|
|
||||||
shift
|
shift
|
||||||
|
else
|
||||||
|
PROG=--progress
|
||||||
fi
|
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
|
if [ ! -z "$*" ]; then
|
||||||
for i in "$@"; do
|
for i in "$@"; do
|
||||||
/usr/bin/rsync -av --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/"
|
/usr/bin/rsync -av --chmod=o+rX 644 --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
/usr/bin/rsync -av --inplace --append-verify $PROG /mnt/ssd/deluge/done hrat:tmp/tmp
|
/usr/bin/rsync -av --chmod=o+rX --inplace --append-verify $PROG /mnt/ssd/deluge/done hrat:tmp/tmp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user