mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-26 16:28:28 +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
|
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 -Pzcvf "${datestamp}.tar.gz" "${backupdir}"
|
||||||
|
rm -rf ${backupdir}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user