From 07ff2c8e7fc8eb94cbbee6367079f626be0a27f3 Mon Sep 17 00:00:00 2001 From: "Jason M. Wood" Date: Mon, 1 Sep 2014 15:05:36 -0600 Subject: [PATCH] Modify the permissions of the backup location. --- minecraft_server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minecraft_server b/minecraft_server index 5a91588..5aa0a83 100755 --- a/minecraft_server +++ b/minecraft_server @@ -1160,6 +1160,8 @@ worldBackup() { execute "mkdir -p $BACKUP_LOCATION" $USER_NAME # Create the backup. execute "$RDIFF_BACKUP -v5 --print-statistics $WORLDS_LOCATION/$1 $BACKUP_LOCATION/$1 >> $BACKUP_LOG" $USER_NAME + # Set the permissions for the backup location. + execute "chmod a+rX -R $BACKUP_LOCATION" $USER_NAME # Cleanup old backups. if [ $BACKUP_DURATION -gt 0 ]; then execute "$RDIFF_BACKUP --remove-older-than ${BACKUP_DURATION}D --force $BACKUP_LOCATION/$1 >> $BACKUP_LOG" $USER_NAME