diff options
-rw-r--r-- | core/scripts/backup-system.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/scripts/backup-system.sh b/core/scripts/backup-system.sh index c28c706..7faf676 100644 --- a/core/scripts/backup-system.sh +++ b/core/scripts/backup-system.sh @@ -265,5 +265,5 @@ do done RELEASE_NAME=$(basename ${DEST_DIR}) -tar -zcpf ${RELEASE_NAME}.tar.gz ${RELEASE_NAME}/ +cd $(dirname ${DEST_DIR}) && tar -zcpf ${RELEASE_NAME}.tar.gz ${RELEASE_NAME}/ rm -rf ${DEST_DIR} |