-
-
Notifications
You must be signed in to change notification settings - Fork 830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: (Some) command/scripts don't utilize proper path(s) [running both PZ & SDTD servers. Same on both] #4387
Comments
This is an issue with the docker container. Backup does need some changes made to work better with the container. however in general I recommend using 3rd party tools for regular backups like rsync as they are more efficient than the LinuxGSM just compress it solution 😄 |
I understand the BACKUP script needs some tweaking, but the script execution (esp. via CRON) believes the SERVERFILES exist in the '/app' folder & NOT the '/data'. Compose YML: My CRON changes (using Portainer): The CRON log: /data/serverfiles (proper) vs. CRON /app/serverfiles :
|
I created another instance & set the SERVERFILES ENV variable
Brought up the container & initial logs sees/creates Setup the CRON w/ logging:
& note the log. Scripts don't recognize variable:
|
I ended up rolling my own, for now. Again, I did redirect, via CONFIG-LGSM, the BACKUP location so it too existed in the /DATA folder.
Could have changed the LSGM COMMAND_BACKUP script but every 'update-lgsm' would wipe it out & need to be redone. But you'd get the auto-rolling, purge & notifications (shrug)
Cut down the (expected via LGSM) 15GB backup, as it was grabbing /SERVERFILES+, to ~420MB by removing the 'bloat' (no TMP, LOGs & SteamCMD files+) Create & add the file/folder(s) I needed to '/data/bkup_include.txt'.
Reference the same file via new script that I could add to CRONTAB (chmod +x!!) [my_backup.sh]:
Crontab:
7 day rolling backup w/ any other logic/work: Crontab.log
vs. Docker container where /DATA is mapped (IE: Only getting what I need)
|
I have since added a symlink from |
User story
As a server admin I want the included scripts to utilize the proper paths to execute properly & successfully
Game
SDTDServer
Linux distro
Ubuntu 22.04
Command
command: update, command: backup
Further information
Part of #4384 ??
(Some) Scripts/commands, when executed via console, would successfully execute & complete (though incomplete [backup])
Appears they are pointing to the /app folder & ignoring the /data
In the cron jobs screenshot, you can see I manually exec. one of the same scripts & it was successful in the log (last entry) while the same script via cron failed (top of log file)
Cron jobs & manual execution attempts:
Cron output:
crontab.log
Server setup:
Duped log files. Script creates new LOG paths, these exist under /DATA already (NOTE the symlink path):
Relevant log output
Steps to reproduce
The text was updated successfully, but these errors were encountered: