[Feature]: LGSM command for restoring backups

Aperta
#4,507 1 commento 4 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
bash, shell
Ambito
cli, devops

Direzione di ricerca

Inizia dal punto di ingresso del comando ./gameserver e segui il comando backup esistente e la struttura dei backup. Definisci come i ripristini interattivi, dell’ultimo backup e denominati debbano selezionare gli archivi, sostituire l’installazione e gestire LGSM stesso. Il lavoro è completato quando tutte e tre le forme di invocazione ripristinano il backup selezionato senza lasciare file che non erano presenti al suo interno.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

command: backup command: install type: feature
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"

Lingua principale
Shell
Stelle
4.9k
Fork
866
Merge medio
17h 58m
PR unite (30g)
100

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GameServerManagers/LinuxGSM

Tutte le issue di GameServerManagers/LinuxGSM

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.