init
This commit is contained in:
commit
c0b02b09e5
4 files changed
+128
No files matched your search
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
WORLD_NAME="${WORLD_NAME:-Dedicated}"
|
||||
BACKUPDIR="${BACKUPDIR:-/backups}"
|
||||
|
||||
ts=$(date +"%Y-%m-%d_%H-%M-%S")
|
||||
mkdir -p "${BACKUPDIR}"
|
||||
|
||||
cp "/config/worlds_local/${WORLD_NAME}.db" "${BACKUPDIR}/${WORLD_NAME}_${ts}.db"
|
||||
cp "/config/worlds_local/${WORLD_NAME}.fwl" "${BACKUPDIR}/${WORLD_NAME}_${ts}.fwl"
|
||||
|
||||
echo "Backup complete: ${BACKUPDIR}/${WORLD_NAME}_${ts}"
|
||||
Reference in new issue
Block a user