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:
Budman17r 2015-11-02 11:09:30 -06:00
parent c3826aa30f
commit 314416f07c

View File

@ -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}
} }
# #