chnage borg params to a array
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
source "/scripts/borgBackup.sh"
|
||||
source "/scripts/functions.sh"
|
||||
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
source "/scripts/borgBackup.sh"
|
||||
source "/scripts/functions.sh"
|
||||
|
||||
##############################################################################################################################
|
||||
# Main Execution
|
||||
##############################################################################################################################
|
||||
|
||||
@@ -89,6 +89,9 @@ function run_backups() {
|
||||
echo "* Running backups"
|
||||
do_backup
|
||||
if [ ! -z "$BORG_BACKUP_TRUE" ]; then
|
||||
BORG_CREATE_PARAMS=($BORG_CREATE_PARAMS)
|
||||
BORG_PRUNE_PARAMS=($BORG_PRUNE_PARAMS)
|
||||
|
||||
create_borg_backup "$BACKUPNAME" "${destination}/config-${BACKUPNAME}-${timestamp}.xml"
|
||||
purge_borg_backup "$BACKUPNAME"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user