mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-23 06:58:28 +00:00
Add option to include all world files in backup
This commit is contained in:
parent
65cd82330a
commit
0569224abc
@ -2732,6 +2732,15 @@ doBackup(){
|
|||||||
echo -e "${NORMAL}\e[68G[ ${GREEN}OK${NORMAL} ]"
|
echo -e "${NORMAL}\e[68G[ ${GREEN}OK${NORMAL} ]"
|
||||||
fi
|
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
|
# ARK server uses Lock-Truncate-Write-Unlock
|
||||||
# Unfortunately we can't lock the file, as
|
# Unfortunately we can't lock the file, as
|
||||||
# ARK server uses a non-blocking lock and will
|
# ARK server uses a non-blocking lock and will
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user