Compare commits
5 Commits
c771413024
...
67a2edf5bc
Author | SHA1 | Date |
---|---|---|
|
67a2edf5bc | |
|
505178f1fa | |
|
859170e93c | |
|
ed325a0e1a | |
|
2f2cef584e |
|
@ -12,28 +12,12 @@ if [ "$2" == "" ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
if [ ! -d "$DIST" ]; then
|
||||
mkdir $DIST
|
||||
fi
|
||||
|
||||
touch $DIST/$STAMP.$NAME
|
||||
|
||||
git add --all
|
||||
git commit -m "$DIST $NAME"
|
||||
exit
|
||||
|
||||
if [ -f "$BASE/$DIST.status.RUNNING" ]; then
|
||||
echo rsync already running on $BASE/$DIST.status.RUNNING
|
||||
exit -1
|
||||
fi
|
||||
rsync $ARG $ARGD $SOURCE $DEST
|
||||
RETURN=$?
|
||||
rm $BASE/$DIST.status.RUNNING
|
||||
echo rsync returned: $RETURN
|
||||
if [ "$RETURN" == "0" ]; then
|
||||
echo should echo OK into a google check file
|
||||
echo OK > $BASE/STATUS
|
||||
touch $BASE/$DIST.status.OK
|
||||
touch $BACKUPDIR".log.OK"
|
||||
else
|
||||
echo should echo ERROR into a google check file
|
||||
echo FAIL > $BASE/STATUS
|
||||
touch $BASE/$DIST.status.FAIL
|
||||
touch $BACKUPDIR".log.FAIL"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue