Skip to content

Commit e18f009

Browse files
authored
Merge pull request #14 from zanix/backup-prune
Add clean-backups Command
2 parents a259764 + 7c0c9ce commit e18f009

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/mscs/backups.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ By default, backups are saved in `/opt/mscs/backups`. The location backups are s
3030
`mscs-backup-location` in `mscs.defaults` or the world's `mscs.properties` config file
3131
(See [Adjusting World & Server Properties](adjusting-world-server-properties)).
3232

33-
---
34-
3533
## Scheduling Backups
3634

3735
To schedule backups so they run periodically, please see [scheduling tasks](scheduling-tasks).
3836

39-
---
37+
## Cleaning Backups
38+
39+
Backups are automatically cleaned whenever a backup runs.
40+
41+
You can manually clean up the backups created by running the `mscs clean-backups` command.
4042

4143
## Viewing & Restoring Backups
4244

docs/mscs/command-reference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ logrotate <world1> <world2> <...>
9999
backup <world1> <world2> <...>
100100
Backup the Minecraft world(s). Backup all worlds by default.
101101
102+
clean-backups <world>
103+
Remove expired backups for the world. Removes old backups based on
104+
mscs-backup-duration.
105+
102106
list-backups <world>
103107
List the datetime of the backups for the world.
104108

0 commit comments

Comments
 (0)