-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#122 added native rcon/rconcli binary to enable other feature request…
… to be able to work
- Loading branch information
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
#!/bin/bash | ||
|
||
DATE=$(date +%Y%m%d_%H%M%S) | ||
TIME=$(date +%H-%M-%S) | ||
|
||
echo ">>> Creating backup" | ||
echo "> Sending message to gameserver" | ||
cd ~/steamcmd/ | ||
rconcli "broadcast $TIME-Backup_in_progress" | ||
sleep 1 | ||
rconcli 'broadcast Saving...' | ||
rconcli 'save' | ||
rconcli 'broadcast Done...' | ||
sleep 15 | ||
# Create backup dir and change into it | ||
mkdir -p /palworld/backups && cd /palworld/Pal | ||
echo ">>> Creating backup" | ||
tar cfz /palworld/backups/saved-$DATE.tar.gz Saved/ | ||
echo ">>> Done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
default: | ||
address: "127.0.0.1:###RCON_PORT###" | ||
password: "###ADMIN_PASSWORD###" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters