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:
135135 backup <world1> <world2> <...>
136136 Backup the Minecraft world(s). Backup all worlds by default.
137137
138+ clean-backups <world>
139+ Remove expired backups for the world. Removes old backups based on
140+ mscs-backup-duration.
141+
138142 list-backups <world>
139143 List the datetime of the backups for the world.
140144
@@ -3290,6 +3294,19 @@ case "$COMMAND" in
32903294 done
32913295 printf " .\n"
32923296 ;;
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+ ;;
32933310 list-backups)
32943311 if isWorldEnabled " $1 " ; then
32953312 worldBackupList " $1 "
You can’t perform that action at this time.
0 commit comments