forked from github/server
backup the reports, because sometimes I am an idiot
This commit is contained in:
parent
ced21cc336
commit
a4a3ebd633
|
@ -28,6 +28,9 @@ if [ -e orders.$TURN ]; then
|
||||||
files="$files orders.$TURN"
|
files="$files orders.$TURN"
|
||||||
fi
|
fi
|
||||||
echo "backup turn $TURN, game $GAME, files: $files"
|
echo "backup turn $TURN, game $GAME, files: $files"
|
||||||
|
if [ -d reports ] ; then
|
||||||
|
tar cjf backup/$TURN-reports.tar.bz2 reports
|
||||||
|
fi
|
||||||
tar cjf backup/$TURN.tar.bz2 $files
|
tar cjf backup/$TURN.tar.bz2 $files
|
||||||
echo "uploading game-$GAME/$TURN.tar.bz2"
|
echo "uploading game-$GAME/$TURN.tar.bz2"
|
||||||
curl -s -n -T backup/$TURN.tar.bz2 https://dav.box.com/dav/Eressea/game-$GAME/$TURN.tar.bz2
|
curl -s -n -T backup/$TURN.tar.bz2 https://dav.box.com/dav/Eressea/game-$GAME/$TURN.tar.bz2
|
||||||
|
|
Loading…
Reference in New Issue