Change tar archive extension

This commit is contained in:
Jose
2019-11-21 02:14:57 -04:00
parent f4f667da39
commit 25f55af3ec
4 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -505,7 +505,7 @@ jail_backup()
fi
else
# Create backup file with tar.
cd ${CWDIR}/jails && tar ${EXCLUDE} -zcf ${JAIL_NAME}-${DATE}.tar ${JAIL_NAME} && mv ${JAIL_NAME}-${DATE}.tar ${CWDIR}/backups
cd ${CWDIR}/jails && tar ${EXCLUDE} -zcf ${JAIL_NAME}-${DATE}.tgz ${JAIL_NAME} && mv ${JAIL_NAME}-${DATE}.tgz ${CWDIR}/backups
fi
if [ $? -ne 0 ]; then
echo "Failed to backup '${JAIL_NAME}' container."