[GH-ISSUE #4384] [Bug]: pzserver BACKUP incomplete #2743

Open
opened 2026-02-27 03:05:09 +03:00 by kerem · 2 comments
Owner

Originally created by @irobot73 on GitHub (Nov 19, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4384

User story

As a LGSM admin I want the backup functionality to properly capture all pertinent files to accomplish, if required, a successful restore

Game

PZSERVER

Linux distro

Ubuntu 22.04

Command

command: backup

Further information

Testing a new install [compose file] as I'm migrating from LinuxGSM-Docker. Backup command issued & finishes (successfully) but output file is incomplete.

Backup file only contains data from container's '/APP' location, no actual game server files

pzserver-2023-11-19-093415.tar.gz

Relevant log output

Nov 19 09:33:56.732 pzserver: MONITOR: INFO: Query bypassed: pzserver started less than 10 minutes ago
Nov 19 09:33:56.737 pzserver: MONITOR: INFO: Server started: Sun Nov 19 09:32:17 AM EST 2023
Nov 19 09:33:56.739 pzserver: MONITOR: INFO: Current time: Sun Nov 19 09:33:56 AM EST 2023
Nov 19 09:33:56.745 pzserver: MONITOR: INFO: LinuxGSM version: v23.6.2
Nov 19 09:33:56.746 pzserver: MONITOR: PASS: core_exit.sh exiting with code: 0
Nov 19 09:34:16.444 pzserver: BACKUP: INFO: Starting backup
Nov 19 09:34:16.547 pzserver: BACKUP: INFO: No previous backups found
Nov 19 09:34:16.657 pzserver: BACKUP: WARN: pzserver is currently running
Nov 19 09:34:16.659 pzserver: BACKUP: WARN: Although unlikely; creating a backup while pzserver is running might corrupt the backup
Nov 19 09:34:16.663 pzserver: BACKUP: INFO: Backup lockfile generated
Nov 19 09:34:16.665 pzserver: BACKUP: INFO: /app/lgsm/lock/backup.lock
Nov 19 09:34:16.768 pzserver: BACKUP: INFO: A total of 5.1G will be compressed: /data/backup/pzserver-2023-11-19-093415.tar.gz
Nov 19 09:34:17.271 pzserver: BACKUP: INFO: Backup 5.1G pzserver-2023-11-19-093415.tar.gz, in progress
Nov 19 09:34:17.519 pzserver: BACKUP: PASS: Backup created: pzserver-2023-11-19-093415.tar.gz, total size 136K
Nov 19 09:34:17.524 pzserver: BACKUP: INFO: Sending alert: pzserver has been backed up
Nov 19 09:34:19.551 pzserver: BACKUP: PASS: Sending Discord alert
Nov 19 09:34:19.906 pzserver: BACKUP: INFO: LinuxGSM version: v23.6.2
Nov 19 09:34:19.907 pzserver: BACKUP: WARN: core_exit.sh exiting with code: 3

Steps to reproduce

  1. Console into container
  2. Issue './*server backup'
  3. Check log output & note discrepancy of expected file size vs. final
  4. Verify same in backup file produced
  5. Redirect BACKUP folder (either via LGSM Config or docker-compose VOLUMES), retest: same result
    pzserver-script.log
Originally created by @irobot73 on GitHub (Nov 19, 2023). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4384 ### User story As a LGSM admin I want the backup functionality to properly capture all pertinent files to accomplish, if required, a successful restore ### Game PZSERVER ### Linux distro Ubuntu 22.04 ### Command command: backup ### Further information Testing a new install [compose file] as I'm migrating from LinuxGSM-Docker. Backup command issued & finishes (successfully) but output file is incomplete. Backup file only contains data from container's '/APP' location, no actual game server files [pzserver-2023-11-19-093415.tar.gz](https://github.com/GameServerManagers/LinuxGSM/files/13403564/pzserver-2023-11-19-093415.tar.gz) ### Relevant log output ```shell Nov 19 09:33:56.732 pzserver: MONITOR: INFO: Query bypassed: pzserver started less than 10 minutes ago Nov 19 09:33:56.737 pzserver: MONITOR: INFO: Server started: Sun Nov 19 09:32:17 AM EST 2023 Nov 19 09:33:56.739 pzserver: MONITOR: INFO: Current time: Sun Nov 19 09:33:56 AM EST 2023 Nov 19 09:33:56.745 pzserver: MONITOR: INFO: LinuxGSM version: v23.6.2 Nov 19 09:33:56.746 pzserver: MONITOR: PASS: core_exit.sh exiting with code: 0 Nov 19 09:34:16.444 pzserver: BACKUP: INFO: Starting backup Nov 19 09:34:16.547 pzserver: BACKUP: INFO: No previous backups found Nov 19 09:34:16.657 pzserver: BACKUP: WARN: pzserver is currently running Nov 19 09:34:16.659 pzserver: BACKUP: WARN: Although unlikely; creating a backup while pzserver is running might corrupt the backup Nov 19 09:34:16.663 pzserver: BACKUP: INFO: Backup lockfile generated Nov 19 09:34:16.665 pzserver: BACKUP: INFO: /app/lgsm/lock/backup.lock Nov 19 09:34:16.768 pzserver: BACKUP: INFO: A total of 5.1G will be compressed: /data/backup/pzserver-2023-11-19-093415.tar.gz Nov 19 09:34:17.271 pzserver: BACKUP: INFO: Backup 5.1G pzserver-2023-11-19-093415.tar.gz, in progress Nov 19 09:34:17.519 pzserver: BACKUP: PASS: Backup created: pzserver-2023-11-19-093415.tar.gz, total size 136K Nov 19 09:34:17.524 pzserver: BACKUP: INFO: Sending alert: pzserver has been backed up Nov 19 09:34:19.551 pzserver: BACKUP: PASS: Sending Discord alert Nov 19 09:34:19.906 pzserver: BACKUP: INFO: LinuxGSM version: v23.6.2 Nov 19 09:34:19.907 pzserver: BACKUP: WARN: core_exit.sh exiting with code: 3 ``` ### Steps to reproduce 1. Console into container 2. Issue './*server backup' 3. Check log output & note discrepancy of expected file size vs. final 4. Verify same in backup file produced 5. Redirect BACKUP folder (either via LGSM Config or docker-compose VOLUMES), retest: same result [pzserver-script.log](https://github.com/GameServerManagers/LinuxGSM/files/13403574/pzserver-script.log)
Author
Owner

@dgibbs64 commented on GitHub (Nov 22, 2023):

I would suggest backing up the mounted directory on the host and not using the backup command in the docker container. But some thought needs to go in the docker backups

<!-- gh-comment-id:1822957838 --> @dgibbs64 commented on GitHub (Nov 22, 2023): I would suggest backing up the mounted directory on the host and not using the backup command in the docker container. But some thought needs to go in the docker backups
Author
Owner

@irobot73 commented on GitHub (Nov 22, 2023):

I would suggest backing up the mounted directory on the host and not using the backup command in the docker container. But some thought needs to go in the docker backups

Luckily, the servers I do admin have some of the same functionality. It was nice, via the older LGSM container, to get a daily (as a CYA).

Oddly, too, I am getting "successful" backups via manual execution (noted above), but the CRONTAB entry gives no such love.

*/5 * * * * /app/pzserver update > /data/log/crontab.log 2>&1 
*/5 * * * * /app/pzserver backup > /data/log/crontab.log 2>&1 

crontab.log

I'll back-burner the automation. Thanks for all you do!

<!-- gh-comment-id:1823013826 --> @irobot73 commented on GitHub (Nov 22, 2023): > I would suggest backing up the mounted directory on the host and not using the backup command in the docker container. But some thought needs to go in the docker backups Luckily, the servers I do admin have some of the same functionality. It was nice, via the older LGSM container, to get a daily (as a CYA). Oddly, too, I am getting "successful" backups via manual execution (noted above), but the CRONTAB entry gives no such love. ``` */5 * * * * /app/pzserver update > /data/log/crontab.log 2>&1 */5 * * * * /app/pzserver backup > /data/log/crontab.log 2>&1 ``` [crontab.log](https://github.com/GameServerManagers/LinuxGSM/files/13441487/crontab.log) I'll back-burner the automation. Thanks for all you do!
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2743
No description provided.