[Feature]: LGSM command for restoring backups

Đang mở
#4,507 1 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, shell
Lĩnh vực
cli, devops

Hướng nghiên cứu

Bắt đầu tại điểm vào của lệnh ./gameserver và lần theo lệnh backup hiện có cũng như bố cục bản sao lưu. Xác định cách các thao tác khôi phục tương tác, khôi phục bản mới nhất và khôi phục theo tên sẽ chọn các gói lưu trữ, thay thế bản cài đặt và xử lý chính LGSM. Hoàn tất khi cả ba dạng gọi lệnh đều khôi phục bản sao lưu đã chọn mà không để lại các tệp không tồn tại trong bản sao lưu đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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"

Ngôn ngữ chính
Shell
Star
4.9k
Fork
866
Merge trung bình
17 giờ 58 phút
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.