Line 10... |
Line 10... |
10 |
set -x |
10 |
set -x |
11 |
|
11 |
|
12 |
#cd `dirname $1` |
12 |
#cd `dirname $1` |
13 |
#UPDIR=`basename $1` |
13 |
#UPDIR=`basename $1` |
14 |
UPDIR="$1" |
14 |
UPDIR="$1" |
- |
|
15 |
STATIONNAME=${PWD##*/} |
15 |
|
16 |
|
16 |
# if exclude-list.txt is present, use it |
17 |
# if exclude-list.txt is present, use it |
17 |
# could as well be changed for rsync -q, but this is more clear |
18 |
# could as well be changed for rsync -q, but this is more clear |
18 |
if [[ -f exclude-list.txt ]] |
19 |
if [[ -f exclude-list.txt ]] |
19 |
then |
20 |
then |
20 |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' --exclude-from='exclude-list.txt' meteor@meteor1.astrozor.cz:meteors/SVAKOV_R2/"$UPDIR"/ |
21 |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' --exclude-from='exclude-list.txt' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
21 |
else |
22 |
else |
22 |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' meteor@meteor1.astrozor.cz:meteors/SVAKOV_R2/"$UPDIR"/ |
23 |
rsync -avtz "$UPDIR"/ --rsh='ssh -p2223' meteor@meteor1.astrozor.cz:meteors/"$STATIONNAME"/"$UPDIR" |
23 |
fi |
24 |
fi |