Add files via upload

This commit is contained in:
科技lion 2024-02-02 09:55:36 +08:00 committed by GitHub
parent 993fd0680d
commit 2d9d1c5a69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

7
pal_backup.sh Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
clear
mkdir -p /home/game
docker cp steamcmd:/home/steam/Steam/steamapps/common/PalServer/Pal/Saved/ /home/game/palworld/
cd /home/game && tar czvf palworld_$(date +"%Y%m%d%H%M%S").tar.gz palworld
rm -rf /home/game/palworld/
echo -e "\033[0;32m游戏存档已导出存放在: /home/game/\033[0m"