panel icon indicating copy to clipboard operation
panel copied to clipboard

Reinstall from backups

Open Corenb opened this issue 6 years ago • 15 comments

Describe the solution you'd like Allow users to reinstall their server from a available backup.

Describe alternatives you've considered You can just let user reinstall their server eggs and select pack but I think this can also be useful to reinstall it from backups.

Corenb avatar May 10 '20 11:05 Corenb

Not bad of an idea, But we would have to decide if its A. Going to delete everything currently then extract the backup. or B. Extract the backup and overwrite files. I feel Option A would make more sense as if you're restoring from a backup something got messed up...

notAreYouScared avatar May 10 '20 20:05 notAreYouScared

Should be easy enough to just make that a toggle, no?

DaneEveritt avatar May 10 '20 20:05 DaneEveritt

Yeh, Like on the servers page for the admin to view all servers, like a "Restore" or "Overwrite" maybe a better choice of words...

notAreYouScared avatar May 10 '20 21:05 notAreYouScared

What is the point in including an option? As long as the result is the same for the end-user, it should not matter. We should decide on one method and leave it at that. Personally, I think Option A is a 'clean' way to handle this task.

DarthShmev avatar Jul 17 '20 19:07 DarthShmev

They're two very different things though. Imagine you regularly make backups of only a single directory and want to restore. It'd be painful to have that delete everything.

DaneEveritt avatar Jul 17 '20 21:07 DaneEveritt

If so, I'd suggest what you suggested with a toggle. That would be clean restore or overwrite files as your two options

notAreYouScared avatar Jul 17 '20 22:07 notAreYouScared

I think you should make it so that you can restore backups by having wings extracting the files from the backup, and moving the extracted files into the server directory essentially restoring to the backup. Should probably delete the existing files before putting the backed up files in

And also, Allow users to upload a backup they've downloaded in the past to restore from that. (May not be possible on servers running some eggs like minecraft as they take a lot of space and will reach the web upload limit on most servers, perhaps you can add a folder which can't be deleted and is hidden in the panel where users can through sftp upload old backup files to then restore from?.)

ghost avatar Jul 31 '20 15:07 ghost

They're two very different things though. Imagine you regularly make backups of only a single directory and want to restore. It'd be painful to have that delete everything.

You could delete everything except ignored files and extract the backup. So you will not be deleting files or directories not included in the backup. It shouldn't be so hard and the ignored files array is already included in the backup data on the panel.

GravityCube avatar Nov 11 '20 20:11 GravityCube

What about making a new Docker Container with the backup files. then swap the server to that one and delete the old container.

and maybe make a backup of the current one before you swap to the backed up files. Just in case.

Gaeta avatar Nov 26 '20 22:11 Gaeta

Yes this feature would be awesome. Maybe when installing the backup, it should either

  1. If the whole server was backuped, remove everything from the server and load everything from the backup or

  2. Only delete the files/folders that were not backuped.

The lack of this feature is for me one of the only reasons not to use Pterodactyl on all my Servers. Simply because one some Servers I need to reinstall Backups at least 1-2 a week.

RayvenClaw avatar Nov 28 '20 04:11 RayvenClaw

If your reinstalling backups at least 1-2 a week what on earth are you doing to your server.

But it should keep the old docker until the new docker is full up. Once it is it should delete the old docker. OR if the new docker errors on install it should delete the new one OR let the user press what one it wants? (this one is more of a stretch)

Gaeta avatar Nov 30 '20 13:11 Gaeta

If your reinstalling backups at least 1-2 a week what on earth are you doing to your server.

But it should keep the old docker until the new docker is full up. Once it is it should delete the old docker. OR if the new docker errors on install it should delete the new one OR let the user press what one it wants? (this one is more of a stretch)

Stress testing and that sometimes bricks the container/server Files inside it

RayvenClaw avatar Nov 30 '20 19:11 RayvenClaw

Why does the server need to be re-installed to restore a backup? I believe an option to just be able to get the backup as a ZIP and decide how you're gonna extract it yourself would be much simpler. A downside to this is that it will take a lot of disk space and might exceed the server limit. My other suggestion would be to just stop the server, delete all files, extract backup. Shutting down the server will clear data about your game stored in memory. All other game data is stored on the disk, so no re-install is needed.

zefir-git avatar Dec 28 '20 13:12 zefir-git

Hey there. I think it would be good to be able to either use a backup on an existing server (restore) or create a new server from it

misterquestions avatar Mar 12 '21 01:03 misterquestions

Closed in 1.3.0.

DaneEveritt avatar Mar 12 '21 16:03 DaneEveritt