[Feature]: LGSM command for restoring backups

未关闭
#4,507 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
bash, shell
领域
cli, devops

调研方向

从 ./gameserver 命令入口点开始,跟踪现有的 backup 命令和备份布局。定义交互式、最新备份和指定名称的恢复应如何选择归档、替换安装并处理 LGSM 本身。完成标准是三种调用形式都能恢复所选备份,且不会留下备份中不存在的文件。

由索引模型根据 Issue 内容生成。

描述

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"

主要语言
Shell
星标
4.9k
派生
866
平均合并
17 小时 58 分钟
30 天内合并 PR
100

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。