1 parent e6c180b commit 8fa7e58Copy full SHA for 8fa7e58
1 file changed
scripts/backup.sh
@@ -75,6 +75,9 @@ function create_backup {
75
command+=("--exclude=$CWD")
76
fi
77
78
+ # Exclude the Backup Location directory.
79
+ command+=("--exclude=$BACKUP_LOC")
80
+
81
82
# Create the backup as a compressed tar archive
83
# -c creates a tar archived file
@@ -94,7 +97,7 @@ function create_backup {
94
97
BACKUP_FILENAME="${FILENAME_PREFIX}${BACKUP_TIMESTAMP//[ ]/_}"
95
98
96
99
# The destination where the backup file will be stored.
- BACKUP_DESTINATION="${BACKUP_LOC}${BACKUP_FILENAME}.tar.gz"
100
+ BACKUP_DESTINATION="${BACKUP_LOC}/${BACKUP_FILENAME}.tar.gz"
101
102
# Adding backup destination to command.
103
command+=("$BACKUP_DESTINATION")
0 commit comments