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

[Feature]: LGSM command for restoring backups #4507

Open
MicLieg opened this issue Feb 24, 2024 · 1 comment
Open

[Feature]: LGSM command for restoring backups #4507

MicLieg opened this issue Feb 24, 2024 · 1 comment

Comments

@MicLieg
Copy link
Contributor

MicLieg commented Feb 24, 2024

User story

As a server admin, I want LinuxGSM to handle backup restoration for me to minimize the downtime and work needed when restoring backups.

Game

All

Linux distro

Other

Command

command: backup

Further information

The command would use automatically or manually created backups to quickly restore the gameserver to a specific point in time by overwriting the backed up files. To avoid problems caused by newly created files that don't exist in a backup (such as new saves or player profiles), the entire installation should be deleted and replaced with the contents of the backup.

Restore a backup (prompt the user by listing all existing backups):
./gameserver restore-backup

Restore the latest backup:
./gameserver restore-backup latest

Restore a specific backup:
./gameserver restore-backup "gameserver-2024-02-05-040000.tar.gz"

Possible Problems:

  • Replacing LGSM from within LGSM may prove difficult.
    • Skipping the restoration of LGSM however could lead to incompatibilities between gameserver and LGSM

A future implementation of this/another command could also be useful for automatically applying manually created "backups" that have been prepared to introduce changes to game configurations, maps, mods or rules by overwriting only certain files. However, this will require a completely new backup procedure, as regular restoring of a backup will need to deal with unwanted files not included in the backup as listed above.

Restore a manually prepared "backup":
./gameserver restore-backup "special-event.tar.gz"

@flinnander
Copy link

And I also believe there should be a choice of backup/restore lgsm and/or game data. I've got a scenario where I would only like to restore game data and not LGSM server files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New Issues
Development

No branches or pull requests

2 participants