mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-13 11:28:26 +00:00
Tar the Backup files,
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
This commit is contained in:
parent
c3826aa30f
commit
314416f07c
@ -1160,6 +1160,10 @@ doBackup(){
|
||||
else
|
||||
echo -e "${NORMAL}[ ${RED}FAILED${NORMAL} ]"
|
||||
fi
|
||||
#Tar the files and remove the original Backup Directory. Saves about 50MB of disk space per backup
|
||||
tar -Pzcvf "${datestamp}.tar.gz" "${backupdir}"
|
||||
rm -rf ${backupdir}
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user