From 0569224abc79f0f83790d68fcaa12fa8d01be2dc Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sun, 18 Nov 2018 03:34:38 +1000 Subject: [PATCH] Add option to include all world files in backup --- tools/arkmanager | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/arkmanager b/tools/arkmanager index c7f4e7b..d18a0ab 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -2732,6 +2732,15 @@ doBackup(){ echo -e "${NORMAL}\e[68G[ ${GREEN}OK${NORMAL} ]" fi + # Copy other world files + if [ -n "$backupAllMaps" ]; then + for f in "${savedir}/"*.ark; do + if [[ "${f}" != "${mapfile}" && "${f}" != "${savedir}/"*_??.??.????_??.??.??.ark ]]; then + cp -p "${f}" "${backupdir}/${f##*/}" + fi + done + fi + # ARK server uses Lock-Truncate-Write-Unlock # Unfortunately we can't lock the file, as # ARK server uses a non-blocking lock and will