diff --git a/process/backup-eressea b/process/backup-eressea index 12ced938c..3944a9221 100755 --- a/process/backup-eressea +++ b/process/backup-eressea @@ -4,6 +4,13 @@ if [ -z $ERESSEA ] ; then echo "The ERESSEA environment variable is not set. Assuming $ERESSEA." fi GAME=$1 + +upload() { + SRC="$1" + DST=$(basename "$SRC") + echo put "$SRC" "$DST" | cadaver "https://dav.box.com/dav/Eressea/game-$GAME/" +} + if [ ! -d $ERESSEA/game-$GAME ]; then echo "No such game: game-$GAME." exit 1 @@ -26,7 +33,7 @@ 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 + upload backup/$TURN-reports.tar.bz2 fi files="data/$TURN.dat parteien.full parteien" if [ -e orders.$TURN ]; then @@ -34,5 +41,5 @@ files="$files orders.$TURN" fi echo "backup turn $TURN, game $GAME, files: $files" tar cjf backup/$TURN.tar.bz2 $files -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 +upload backup/$TURN.tar.bz2 + diff --git a/src/kernel/version.c b/src/kernel/version.c index adbb78e18..e0eda3631 100644 --- a/src/kernel/version.c +++ b/src/kernel/version.c @@ -8,7 +8,7 @@ #ifndef ERESSEA_VERSION /* the version number, if it was not passed to make with -D */ -#define ERESSEA_VERSION "3.20.0" +#define ERESSEA_VERSION "3.21.0" #endif const char *eressea_version(void) {