about summary refs log tree commit diff stats
path: root/core/scripts/backup-system.sh
diff options
context:
space:
mode:
Diffstat (limited to 'core/scripts/backup-system.sh')
-rw-r--r--core/scripts/backup-system.sh2
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}