Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum amount of backups to keep at a time #226

Open
anthonykour opened this issue Nov 16, 2023 · 0 comments
Open

Maximum amount of backups to keep at a time #226

anthonykour opened this issue Nov 16, 2023 · 0 comments

Comments

@anthonykour
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔍 Evaluating...
Development

No branches or pull requests

1 participant