File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ Actions:
135
135
backup <world1> <world2> <...>
136
136
Backup the Minecraft world(s). Backup all worlds by default.
137
137
138
+ clean-backups <world>
139
+ Remove expired backups for the world. Removes old backups based on
140
+ mscs-backup-duration.
141
+
138
142
list-backups <world>
139
143
List the datetime of the backups for the world.
140
144
@@ -3290,6 +3294,19 @@ case "$COMMAND" in
3290
3294
done
3291
3295
printf " .\n"
3292
3296
;;
3297
+ clean-backups)
3298
+ if isWorldEnabled " $1 " ; then
3299
+ worldBackupCleanup " $1 "
3300
+ elif [ -n " $1 " ]; then
3301
+ printf " World '$1 ' does not exist or not enabled.\n"
3302
+ printf " Usage: $PROG $COMMAND <world>\n"
3303
+ exit 1
3304
+ else
3305
+ printf " World not supplied.\n"
3306
+ printf " Usage: $PROG $COMMAND <world>\n"
3307
+ exit 1
3308
+ fi
3309
+ ;;
3293
3310
list-backups)
3294
3311
if isWorldEnabled " $1 " ; then
3295
3312
worldBackupList " $1 "
You can’t perform that action at this time.
0 commit comments