nitrog0d / palworld-arm64

Palworld Arm64 Dedicated server with Docker and FEX
100 stars 5 forks source link

Automatic backup #5

Open sha0x404 opened 7 months ago

sha0x404 commented 7 months ago

I would like to ask if it is possible to introduce an automatic backup system, such as the one present in the jammsen in the official docker image.

nitrog0d commented 7 months ago

It's on TODO list For now you can use a cron job outside the docker container

#!/bin/bash

DATE=$(date +%Y%m%d_%H%M%S)

# Create backup dir and change into it
mkdir -p /root/Palworld/backups && cd /root/Palworld/palworld/Pal
echo ">>> Creating backup"
tar cfz /root/Palworld/backups/saved-$DATE.tar.gz Saved/
echo ">>> Done"