forked from github/server
fix reports backup, I hope
This commit is contained in:
parent
119e9dbecc
commit
f052c0542b
|
@ -23,15 +23,16 @@ if [ ! -d backup ] ; then
|
||||||
ln -sf ~/backup/eressea/game-$GAME backup
|
ln -sf ~/backup/eressea/game-$GAME backup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -e reports/reports.txt ] ; then
|
||||||
|
echo "backup reports $TURN, game $GAME"
|
||||||
|
tar cjf backup/$TURN-reports.tar.bz2 reports
|
||||||
|
curl -s -n -T backup/$TURN-reports.tar.bz2 https://dav.box.com/dav/Eressea/game-$GAME/$TURN-reports.tar.bz2
|
||||||
|
fi
|
||||||
files="data/$TURN.dat parteien.full parteien"
|
files="data/$TURN.dat parteien.full parteien"
|
||||||
if [ -e orders.$TURN ]; then
|
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"
|
|
||||||
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
|
||||||
#curl -s -n -T eressea.db https://dav.box.com/dav/Eressea/eressea.db
|
#curl -s -n -T eressea.db https://dav.box.com/dav/Eressea/eressea.db
|
||||||
|
|
Loading…
Reference in New Issue