You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I experienced error when I tried to use the backup tool. When I checked the backup tar file, it was suspiciously small. The content inside only keeps serverfile synlinks and none of the game data.
Game
PaperMC, but extensible to every docker
Linux distro
Ubuntu 22.04
Command
command: backup
Further information
As a user, I experienced error when I tried to use the backup tool. When I checker the backup tar file, it was suspiciously small. The content inside only keeps serverfile synlinks and none of the game data:
Tarball file content:
Original directory:
This behaviour can result on a catastrphic mess if you trust what this command is supposed to do.
There are many ways to get riddle of this. My quick fix was editing /app/lgsm/modules/command_backup.sh, and adding the "-h" param to tar, who make tar retieve the linked directories:
Additional Info:
/app/lgsm/ is not persisted into the docker volume folder so ....
this fix fill be lost in every deploy
/app/lgsm/backup is the default directory ... so neither will be persisted. It can and must be modified into configuration file to another location inside /data folder
Relevant log output
No response
Steps to reproduce
execute pmcserver backup inside a docker container and check the backup tar file... will find link to serverfile directory instead relevant data
you can add into your common.cfg something like ... backupdir="/data/backup"
The text was updated successfully, but these errors were encountered:
Neimolon
changed the title
[Bug]: Docker Backups stores symlinks insead server files. Also backups folder is outsode of persisted volume by default
[Bug]: Docker Backups stores symlinks insead server files. Also backups folder is outside of persisted volume by default
Jan 12, 2025
User story
As a user, I experienced error when I tried to use the backup tool. When I checked the backup tar file, it was suspiciously small. The content inside only keeps serverfile synlinks and none of the game data.
Game
PaperMC, but extensible to every docker
Linux distro
Ubuntu 22.04
Command
command: backup
Further information
As a user, I experienced error when I tried to use the backup tool. When I checker the backup tar file, it was suspiciously small. The content inside only keeps serverfile synlinks and none of the game data:
Tarball file content:
Original directory:
This behaviour can result on a catastrphic mess if you trust what this command is supposed to do.
There are many ways to get riddle of this. My quick fix was editing /app/lgsm/modules/command_backup.sh, and adding the "-h" param to tar, who make tar retieve the linked directories:
Additional Info:
/app/lgsm/ is not persisted into the docker volume folder so ....
Relevant log output
No response
Steps to reproduce
execute pmcserver backup inside a docker container and check the backup tar file... will find link to serverfile directory instead relevant data
you can add into your common.cfg something like ... backupdir="/data/backup"
The text was updated successfully, but these errors were encountered: