4,8 → 4,11 |
# |
# this script should not be called manually |
|
[[ "$#" -ne 1 ]] && echo "Please provide directory to upload" && exit 1 |
echo $1 , $2 |
echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
|
[[ "$#" < 1 ]] && echo "Please provide directory to upload" && exit 1 |
|
# debug |
set -x |
|
18,7 → 21,7 |
# could as well be changed for rsync -q, but this is more clear |
if [[ -f exclude-list.txt ]] |
then |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' --exclude-from='exclude-list.txt' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
rsync -avvtz "$2" "$UPDIR"/ --rsh='ssh -p2223' --exclude-from='exclude-list.txt' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
else |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
rsync -avvtz "$2" "$UPDIR"/ --rsh='ssh -p2223' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
fi |