pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.5k stars 1.61k forks source link

Be able to mass delete backups #4377

Open BasToTheMax opened 1 year ago

BasToTheMax commented 1 year ago

Is there an existing feature request for this?

Describe the feature you would like to see.

I currently need to delete over 500 backups manually, and it's really boring to delete them all manually.

Describe the solution you'd like.

Add checkboxes to delete backups

Additional context to this request.

Require a password/2fa code to do this

QuintenQVD0 commented 1 year ago

If you know some mysql can just remove all backups and clear the backup folder on the disk. But be carful. Make a backuo of the db first as if you do 1 thing wrong it can be wipe OS to reinstall everything

devnote-dev commented 1 year ago

You're better off using the API and a simple script or a dedicated CLI tool to purge the backups. Executing raw SQL statements isn't safe and can cause unwanted side effects or break your panel as mentioned.

TravisArmstrong commented 1 year ago

This would be very helpful. You could alternatively add a retention period in either number of backups or retention time period (i.e. 7 days) to keep on hand so that old ones (that aren't locked) are deleted automatically.