|
|
@ -45,7 +45,6 @@ if [ ! -d "${backupdir}" ]; then |
|
|
|
mkdir "${backupdir}" |
|
|
|
fi |
|
|
|
tar -czf "${backupdir}/${backupname}.tar.gz" -C "${rootdir}" --exclude "backups" ./* |
|
|
|
echo "" |
|
|
|
fn_printoknl "Backup created: ${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size" |
|
|
|
fn_scriptlog "Complete, Backup created: ${backupdir}/${backupname}.tar.gz is $(du -sh "${backupdir}/${backupname}.tar.gz" | awk '{print $1}') size" |
|
|
|
sleep 1 |
|
|
|