[GH-ISSUE #1899] Problem identifying the previous backup directory #1494

Closed
opened 2026-02-27 02:57:25 +03:00 by kerem · 12 comments
Owner

Originally created by @zian92 on GitHub (May 14, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1899

Hi,
I am running the latest LGSM version with teamspeak and stumbled over an issue with the backup directory.
I tried to run the backup command on a nightly basis via crontab. Sadly it fails regularly.
/home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start

The problem seems to be in the backup routine. It says: [ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion.

To look into it, I ran the routine manually and it seems to work when started inside the the folder where the executable is but not in any other.
Do I miss something or can this be a problem with an absolute or relative path of the backup folder?

Thanks in advance,
Zian

Originally created by @zian92 on GitHub (May 14, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1899 Hi, I am running the latest LGSM version with teamspeak and stumbled over an issue with the backup directory. I tried to run the backup command on a nightly basis via crontab. Sadly it fails regularly. `/home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start` The problem seems to be in the backup routine. It says: `[ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion.` To look into it, I ran the routine manually and it seems to work when started inside the the folder where the executable is but not in any other. Do I miss something or can this be a problem with an absolute or relative path of the backup folder? Thanks in advance, Zian
kerem 2026-02-27 02:57:25 +03:00
Author
Owner

@UltimateByte commented on GitHub (May 14, 2018):

Hi,

Is there backups already?
Can you please provide minimal info as per https://linuxgsm.com/support/ ?

LinuxGSM
There are various ways to get help and support with LinuxGSM. Including wiki, steam group and discord
<!-- gh-comment-id:388887235 --> @UltimateByte commented on GitHub (May 14, 2018): Hi, Is there backups already? Can you please provide minimal info as per https://linuxgsm.com/support/ ? <blockquote><img src="http://gameservermanagers.com/wp-content/uploads/2015/08/lgsm-full-dark.png" width="48" align="right"><div>LinuxGSM</div><div><strong><a href="https://linuxgsm.com/support/">Support – LinuxGSM</a></strong></div><div>There are various ways to get help and support with LinuxGSM. Including wiki, steam group and discord</div></blockquote>
Author
Owner

@zian92 commented on GitHub (May 24, 2018):

Hi,
Here's the output of postdetails: https://hastebin.com/sokunupiwa

There is one backup that i created manually as stated. Since then, the cron didn't create another one.
It schould create one every night, but as shown in the hastebin, it several days old.

Zian

<!-- gh-comment-id:391696064 --> @zian92 commented on GitHub (May 24, 2018): Hi, Here's the output of postdetails: https://hastebin.com/sokunupiwa There is one backup that i created manually as stated. Since then, the cron didn't create another one. It schould create one every night, but as shown in the hastebin, it several days old. Zian <blockquote><div><strong><a href="https://hastebin.com/sokunupiwa">hastebin</a></strong></div></blockquote>
Author
Owner

@UltimateByte commented on GitHub (May 24, 2018):

Mhh, I see nothing fancy here.
I can't remember when we fixed some issues with the backup, can you try updating your linuxgsm with the following command?
./ts3server update

Edit:
Proper command is
./ts3server update-functions
my bad

<!-- gh-comment-id:391707155 --> @UltimateByte commented on GitHub (May 24, 2018): Mhh, I see nothing fancy here. I can't remember when we fixed some issues with the backup, can you try updating your linuxgsm with the following command? ./ts3server update Edit: Proper command is ./ts3server update-functions my bad
Author
Owner

@zian92 commented on GitHub (May 24, 2018):

the server is up to date ( and lgsm as well)

[  OK  ] Update ts3server: Checking for update: teamspeak.com

No update available:
	Current version: 3.2.0
	Available version: 3.2.0

[  OK  ] Update ts3server: No update available

is Lgsm working with relative paths? the execution directory may be differend when run by cron

<!-- gh-comment-id:391711083 --> @zian92 commented on GitHub (May 24, 2018): the server is up to date ( and lgsm as well) ```$ ./ts3server update [ OK ] Update ts3server: Checking for update: teamspeak.com No update available: Current version: 3.2.0 Available version: 3.2.0 [ OK ] Update ts3server: No update available ``` is Lgsm working with relative paths? the execution directory may be differend when run by cron
Author
Owner

@zian92 commented on GitHub (May 25, 2018):

I updated lgsm yesterday and don't have a new backup with the nightly run

<!-- gh-comment-id:391997874 --> @zian92 commented on GitHub (May 25, 2018): I updated lgsm yesterday and don't have a new backup with the nightly run
Author
Owner

@UltimateByte commented on GitHub (May 25, 2018):

Please, try running the command manually to isolate any issue and get any relevant output.
Also, is your install using the old config (within your ts3server script) or the new config system (within /lgsm/config-lgsm/ts3server/ts3server.cfg) ?

<!-- gh-comment-id:392060453 --> @UltimateByte commented on GitHub (May 25, 2018): Please, try running the command manually to isolate any issue and get any relevant output. Also, is your install using the old config (within your ts3server script) or the new config system (within /lgsm/config-lgsm/ts3server/ts3server.cfg) ?
Author
Owner

@zian92 commented on GitHub (Jun 20, 2018):

I am using the new configuration. The following is output of the cronlog:

cat log/script/ts3server-script-2018-06-20-07:56:19.log
Jun 20 07:52:27.431 ts3server: START: PASS: Started TeamSpeak 3 Server
Jun 20 07:52:27.435 ts3server: START: PASS: command_start.sh exiting with code: 0
Jun 20 07:56:01.779 ts3server: BACKUP: INFO: Lockfile generated
Jun 20 07:56:01.781 ts3server: BACKUP: INFO: /home/ts3server/server/lgsm/tmp/.backup.lock
Jun 20 07:56:02.018 ts3server: BACKUP: INFO: Backup starting
Jun 20 07:56:04.044 ts3server: BACKUP: WARN: ts3server will be stopped during the backup
Jun 20 07:56:16.766 ts3server: STOP: PASS: Stopped TeamSpeak 3 Server
Jun 20 07:56:16.770 ts3server: BACKUP: INFO: A total of 18M will be compressed: /home/ts3server/server/backups/ts3server-2018-06-20-075601.tar.gz
Jun 20 07:56:18.774 ts3server: BACKUP: INFO: backup 18M ts3server-2018-06-20-075601.tar.gz, in progress
Jun 20 07:56:19.286 ts3server: BACKUP: FATAL: Problem identifying the previous backup directory for exclusion
Jun 20 07:56:19.290 ts3server: BACKUP: FATAL: command_backup.sh exiting with code: 1

and here the manuall run from within the server folder with preps (removing lock) :

[ts3server]$ rm lgsm/tmp/.backup.lock
[ts3server]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start
[ OK ] Backup ts3server: Backup starting
[ INFO ] Backup ts3server: There are no previous backups
[ WARN ] Backup ts3server: ts3server will be stopped during the backup
[ OK ] Stopping ts3server: TeamSpeak 3 Server
[ OK ] Backup ts3server: Completed: ts3server-2018-06-20-080745.tar.gz, total size 60M
[ OK ] Starting ts3server: TeamSpeak 3 Server
[ OK ] Update ts3server: Checking for update: teamspeak.com
No update available:
Current version: 3.2.0
Available version: 3.2.0
[ OK ] Update ts3server: No update available
[ INFO ] Starting ts3server: TeamSpeak 3 Server is already running

manual run from within backupfolder (deleted previous backup):

[ts3server server]$ cd backups/
[ts3server backups]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start
[ OK ] Backup ts3server: Backup starting
[ INFO ] Backup ts3server: There are no previous backups
[ WARN ] Backup ts3server: ts3server will be stopped during the backup
[ OK ] Stopping ts3server: TeamSpeak 3 Server
[ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion.
[ OK ] Starting ts3server: TeamSpeak 3 Server
[ts3server backups]$

<!-- gh-comment-id:398635497 --> @zian92 commented on GitHub (Jun 20, 2018): I am using the **new** configuration. The following is output of the cronlog: > cat log/script/ts3server-script-2018-06-20-07\:56\:19.log Jun 20 07:52:27.431 ts3server: START: PASS: Started TeamSpeak 3 Server Jun 20 07:52:27.435 ts3server: START: PASS: command_start.sh exiting with code: 0 Jun 20 07:56:01.779 ts3server: BACKUP: INFO: Lockfile generated Jun 20 07:56:01.781 ts3server: BACKUP: INFO: /home/ts3server/server/lgsm/tmp/.backup.lock Jun 20 07:56:02.018 ts3server: BACKUP: INFO: Backup starting Jun 20 07:56:04.044 ts3server: BACKUP: WARN: ts3server will be stopped during the backup Jun 20 07:56:16.766 ts3server: STOP: PASS: Stopped TeamSpeak 3 Server Jun 20 07:56:16.770 ts3server: BACKUP: INFO: A total of 18M will be compressed: /home/ts3server/server/backups/ts3server-2018-06-20-075601.tar.gz Jun 20 07:56:18.774 ts3server: BACKUP: INFO: backup 18M ts3server-2018-06-20-075601.tar.gz, in progress Jun 20 07:56:19.286 ts3server: BACKUP: FATAL: Problem identifying the previous backup directory for exclusion Jun 20 07:56:19.290 ts3server: BACKUP: FATAL: command_backup.sh exiting with code: 1 and here the manuall run from within the server folder with preps (removing lock) : > [ts3server]$ rm lgsm/tmp/.backup.lock [ts3server]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start [ OK ] Backup ts3server: Backup starting [ INFO ] Backup ts3server: There are no previous backups [ WARN ] Backup ts3server: ts3server will be stopped during the backup [ OK ] Stopping ts3server: TeamSpeak 3 Server [ OK ] Backup ts3server: Completed: ts3server-2018-06-20-080745.tar.gz, total size 60M [ OK ] Starting ts3server: TeamSpeak 3 Server [ OK ] Update ts3server: Checking for update: teamspeak.com No update available: Current version: 3.2.0 Available version: 3.2.0 [ OK ] Update ts3server: No update available [ INFO ] Starting ts3server: TeamSpeak 3 Server is already running manual run from within backupfolder (deleted previous backup): >[ts3server server]$ cd backups/ [ts3server backups]$ /home/ts3server/server/ts3server backup && /home/ts3server/server/ts3server update ; /home/ts3server/server/ts3server start [ OK ] Backup ts3server: Backup starting [ INFO ] Backup ts3server: There are no previous backups [ WARN ] Backup ts3server: ts3server will be stopped during the backup [ OK ] Stopping ts3server: TeamSpeak 3 Server [ FAIL ] Backup ts3server: Problem identifying the previous backup directory for exclusion. [ OK ] Starting ts3server: TeamSpeak 3 Server [ts3server backups]$
Author
Owner

@Claiyc commented on GitHub (Mar 23, 2022):

Is this still relevant?

<!-- gh-comment-id:1076861356 --> @Claiyc commented on GitHub (Mar 23, 2022): Is this still relevant?
Author
Owner

@Kazz3r24 commented on GitHub (Apr 28, 2022):

I get this error whenever I try to run the backup command. Just finished checking for lgsm update.

Please let me know what information I can provide.

<!-- gh-comment-id:1112413122 --> @Kazz3r24 commented on GitHub (Apr 28, 2022): I get this error whenever I try to run the backup command. Just finished checking for lgsm update. Please let me know what information I can provide.
Author
Owner

@TheFurnace commented on GitHub (Oct 17, 2022):

I had this issue just now when running "~/arkserver backup" from the directory "/home/arkserver/ServerSettings".
It worked when I ran it from the "/home/arkserver" directory.

<!-- gh-comment-id:1281182859 --> @TheFurnace commented on GitHub (Oct 17, 2022): I had this issue just now when running "~/arkserver backup" from the directory "/home/arkserver/ServerSettings". It worked when I ran it from the "/home/arkserver" directory.
Author
Owner

@Deanmrd commented on GitHub (Dec 4, 2022):

Hey guys any resolve to this as it still an issues

I have setup a cron to run everyday at 03:00 to backup both clusters of my server.

[ OK ] Backing up arkserver2: Backup starting

  • Previous backup was created 1 day ago, total size 11G
    [ WARN ] Backing up arkserver2: arkserver2 is currently running (tried with server offline)
  • Although unlikely; creating a backup while arkserver2 is running might corrupt the backup.
    [ FAIL ] Backing up arkserver2: Problem identifying the previous backup directory for exclusion.

I am running to arkservers and the is 1 run backup in home/gameuser/gamserver/lgsm/backup, in my arkserver.cfg I have it set

## Backup | https://docs.linuxgsm.com/commands/backup
maxbackups="3"
maxbackupdays="30"
stoponbackup="off"

thanks

Dean

<!-- gh-comment-id:1336528879 --> @Deanmrd commented on GitHub (Dec 4, 2022): Hey guys any resolve to this as it still an issues I have setup a cron to run everyday at 03:00 to backup both clusters of my server. [ OK ] Backing up arkserver2: Backup starting * Previous backup was created 1 day ago, total size 11G [ WARN ] Backing up arkserver2: arkserver2 is currently running (tried with server offline) * Although unlikely; creating a backup while arkserver2 is running might corrupt the backup. [ FAIL ] Backing up arkserver2: Problem identifying the previous backup directory for exclusion. I am running to arkservers and the is 1 run backup in home/gameuser/gamserver/lgsm/backup, in my arkserver.cfg I have it set ``` ## Backup | https://docs.linuxgsm.com/commands/backup maxbackups="3" maxbackupdays="30" stoponbackup="off" ``` thanks Dean
Author
Owner

@dgibbs64 commented on GitHub (Jun 27, 2025):

Closing this as stale. If still an issue. Please re-raise

<!-- gh-comment-id:3012311433 --> @dgibbs64 commented on GitHub (Jun 27, 2025): Closing this as stale. If still an issue. Please re-raise
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#1494
No description provided.