mirror of
https://github.com/hackacad/bastille.git
synced 2026-01-03 19:23:42 +01:00
Merge pull request #1144 from BastilleBSD/tschettervictor-patch-2
This commit is contained in:
@@ -385,7 +385,7 @@ jail_export() {
|
|||||||
info "\nExporting '${TARGET}' to a compressed ${FILE_EXT} archive..."
|
info "\nExporting '${TARGET}' to a compressed ${FILE_EXT} archive..."
|
||||||
|
|
||||||
cd "${bastille_jailsdir}" || error_exit "[ERROR]: Failed to change to directory: ${bastille_jailsdir}"
|
cd "${bastille_jailsdir}" || error_exit "[ERROR]: Failed to change to directory: ${bastille_jailsdir}"
|
||||||
if ! tar -cf - "${TARGET}" | gzip ${bastille_compress_gz_options} > "${TARGET}_${DATE}${FILE_EXT}"; then
|
if ! tar -cf - "${TARGET}" | gzip ${bastille_compress_gz_options} > "${bastille_backupsdir}/{TARGET}_${DATE}${FILE_EXT}"; then
|
||||||
error_exit "[ERROR]: Failed to export jail: ${TARGET}"
|
error_exit "[ERROR]: Failed to export jail: ${TARGET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -397,7 +397,7 @@ jail_export() {
|
|||||||
info "\nExporting '${TARGET}' to a compressed ${FILE_EXT} archive..."
|
info "\nExporting '${TARGET}' to a compressed ${FILE_EXT} archive..."
|
||||||
|
|
||||||
cd "${bastille_jailsdir}" || error_exit "[ERROR]: Failed to change to directory: ${bastille_jailssdir}"
|
cd "${bastille_jailsdir}" || error_exit "[ERROR]: Failed to change to directory: ${bastille_jailssdir}"
|
||||||
if ! tar -cf - "${TARGET}" | xz ${bastille_compress_xz_options} > "${TARGET}_${DATE}${FILE_EXT}"; then
|
if ! tar -cf - "${TARGET}" | xz ${bastille_compress_xz_options} > "${bastille_backupsdir}/${TARGET}_${DATE}${FILE_EXT}"; then
|
||||||
error_exit "[ERROR]: Failed to export jail: ${TARGET}"
|
error_exit "[ERROR]: Failed to export jail: ${TARGET}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user