mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-20 05:58:27 +00:00
Update arkmanager
Added the OK. Still needs work.
This commit is contained in:
parent
a945b954c3
commit
db3bc524e0
@ -1160,12 +1160,21 @@ doBackup(){
|
|||||||
else
|
else
|
||||||
echo -e "${NORMAL}[ ${RED}FAILED${NORMAL} ]"
|
echo -e "${NORMAL}[ ${RED}FAILED${NORMAL} ]"
|
||||||
fi
|
fi
|
||||||
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
|
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
|
||||||
tar -jcvf "${arkbackupdir}/${datestamp}.tar.bz2" -C "${arkbackupdir}" "${datestamp}"
|
|
||||||
rm -rf ${backupdir}
|
|
||||||
|
|
||||||
|
echo -ne "${NORMAL} Compressing Directory "
|
||||||
|
|
||||||
|
tar -jcvf "${arkbackupdir}/${datestamp}.tar.bz2" -C "${arkbackupdir}" "${datestamp}"
|
||||||
|
rm -rf ${backupdir}
|
||||||
|
|
||||||
|
if [ -f "${arkbackupdir}/${datestamp}.tar.bz2" ]; then
|
||||||
|
echo -e "${NORMAL}[ ${GREEN}OK${NORMAL} ]"
|
||||||
|
else
|
||||||
|
echo -e "${NORMAL}[ ${RED}FAILED${NORMAL} ]"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Print the status of the server (running? online? version?)
|
# Print the status of the server (running? online? version?)
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user