AutoPlug-Client icon indicating copy to clipboard operation
AutoPlug-Client copied to clipboard

Maximum amount of backups to keep at a time

Open anthonykour opened this issue 2 years ago • 0 comments

Importance: 7/10

Problem:

Pterodactyl has a feature where you can set the maximum amount of backups you keep at a time. So for example, if you set up the backup.yml to store 2 maximum backups at a time, and you already have two in the backup folder, when a third backup starts, the oldest backup in the folder, gets deleted.

A backup is ran every time the server restarts, which is fine, but I find myself having to manually delete the oldest backup, before a new backup is made before the next server restart. If this process was handled automatically, I would have to worry about the amount of backups using up my overall storage space.

Solution: `backup: enable: true

  • Set max-days to 0 if you want to keep your backups forever. max-days: 7
  • Set maximum amount of backups to keep in the backups folder at a time. max-saves: 2
  • The cool-down for this task in minutes.
  • If you restart your server multiple times in a short amount of time,
  • you probably won't want to create backups each time you restart your server.
  • The cool-down prevents exactly that from happening and saves you storage space and time.
  • Set to 0 to disable. cool-down: 500`

The snippet above from the backup.yml shows how the new section would read, the "max-saves:" setting would set the amount of backups saved in the backups folder at a time, and would automatically delete the oldest backup, before creating a new one.

anthonykour avatar Nov 16 '23 02:11 anthonykour