-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
10 deletions.
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,16 +1,13 @@ | ||
|
||
# Backups | ||
|
||
The backup command allows the creation of .tar.gz archives of a game server, alter these three settings by editing LinuxGSM Config | ||
The backup command allows the creation of .tar.gz archives of the world of the server, alter these three settings by changing the following environments | ||
|
||
* maxbackups | ||
* maxbackupdays | ||
* stoponbackup | ||
|
||
Backups settings can be changed in */path/to/LGSM-Config/common.cfg* | ||
* BACKUP_HOUR -> Must be 0-23 | ||
* BACKUP_MAX | ||
|
||
If you wants to force a backup run this command: | ||
|
||
```bash | ||
docker-compose exec 7dtdserver ./sdtdserver backup | ||
docker-compose exec 7dtdserver ./scripts/server_backup.sh | ||
``` |
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,4 +1,4 @@ | ||
#!/bin/bash | ||
echo "0 5 * * * /home/sdtdserver/sdtdserver backup > /dev/null 2>&1" >> crontab.txt | ||
echo "0 $BACKUP_HOUR * * * /home/sdtdserver/scripts/server_backup.sh > /dev/null 2>&1" >> crontab.txt | ||
|
||
echo "[INFO] Activated automatic backup at 5AM" |
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