Skip to content

Commit

Permalink
Rename dump save to backup & add to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsvanloef committed Jan 24, 2024
1 parent 5ebfd4c commit 2707fc5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ ENV PORT= \
QUERY_PORT=27015

COPY ./scripts/* /home/steam/server/
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/dump_save.sh
RUN chmod +x /home/steam/server/init.sh /home/steam/server/start.sh /home/steam/server/backup.sh

RUN mv /home/steam/server/dump_save.sh /usr/local/bin/dump_save
RUN mv /home/steam/server/backup.sh /usr/local/bin/backup

Check failure on line 33 in Dockerfile

View workflow job for this annotation

GitHub Actions / dockerlint

DL3059 info: Multiple consecutive `RUN` instructions. Consider consolidation.

WORKDIR /home/steam/server

Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,16 @@ This will open a CLI that use can use to write commands to the Palworld Server.

For a full list of commands go to: [https://tech.palworldgame.com/server-commands](https://tech.palworldgame.com/server-commands)

## Dump Save
## Creating a backup

To create a backup of the game's save at the current point in time, use the command.

```bash
docker exec palworld-server dump_save
docker exec palworld-server backup
```

This will create a backup at `/palworld/backups/`

## 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`
Expand Down
6 changes: 3 additions & 3 deletions scripts/dump_save.sh → scripts/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

DATE=$(date +"%Y-%m-%d_%H-%M-%S")
FILE_PATH="/palworld/backups/palworld-save-${DATE}.tar.gz"
cd /palworld/Pal/
cd /palworld/Pal/ || exit

tar -zcf $FILE_PATH "Saved/"
echo "file dumped at $FILE_PATH"
tar -zcf "$FILE_PATH" "Saved/"
echo "backup created at $FILE_PATH"

0 comments on commit 2707fc5

Please sign in to comment.