Add option to include all world files in backup

This commit is contained in:
Ben Peddell 2018-11-18 03:34:38 +10:00
parent 65cd82330a
commit 0569224abc

View File

@ -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