Merge pull request #118 from Dashboy1998/backup-save

Backup save
This commit is contained in:
Thijs van Loef
2024-01-26 09:41:51 +01:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -180,6 +180,8 @@ docker exec palworld-server backup
This will create a backup at `/palworld/backups/`
The server will run a save before the backup if rcon is enabled.
## Editing Server Settings
When the server starts, a `PalWorldSettings.ini` file will be created in the following location: `<mount_folder>/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini`

View File

@@ -1,5 +1,9 @@
#!/bin/bash
if [ "${RCON_ENABLED}" = true ]; then
rcon-cli save
fi
DATE=$(date +"%Y-%m-%d_%H-%M-%S")
FILE_PATH="/palworld/backups/palworld-save-${DATE}.tar.gz"
cd /palworld/Pal/ || exit