Files moved from scripts.
This commit is contained in:
16
bin/upload.ready.deluge.sh
Executable file
16
bin/upload.ready.deluge.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
if [ "$1" != "no-progress" ]; then
|
||||
PROG=--progress
|
||||
else
|
||||
shift
|
||||
fi
|
||||
if [ ! -z "$*" ]; then
|
||||
for i in "$@"; do
|
||||
/usr/bin/rsync -av --inplace --progress --append-verify "/mnt/ssd/deluge/done/$i" "hrat:tmp/tmp/done/"
|
||||
done
|
||||
else
|
||||
/usr/bin/rsync -av --inplace --append-verify $PROG /mnt/ssd/deluge/done hrat:tmp/tmp
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user