mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 02:48:27 +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} ]"
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user