mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 14:58:18 -07:00
Modify the permissions of the backup location.
This commit is contained in:
parent
c8fe94c778
commit
07ff2c8e7f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user