]> gitweb.hhaalo.de Git - simple-backup.git/commitdiff
add full backup path sub method
authorBastian Dehn <hhaalo@arcor.de>
Wed, 5 Aug 2026 15:02:04 +0000 (17:02 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 5 Aug 2026 15:02:04 +0000 (17:02 +0200)
src/backup

index 7195f76f18d20af866e099540c430d151948f438..6ede52da6a6a2120bc9922cde7d22b95b2f2c4a1 100755 (executable)
@@ -135,6 +135,7 @@ machine_backup_pathes()
        local RESET="\e[0m"
        local config="$1"
        local machine="$2"
+       local full_backup_path="$3"
        local pathes=()
        mapfile -t pathes < <(echo "$config" \
                | jq --raw-output ".machines.$machine.pathes[]")
@@ -167,6 +168,7 @@ backup_machines()
                mkdir --parents "$full_backup_path"
                machine_backup_pathes "$config" \
                        "$machine" \
+                       "$full_backup_path" \
                        || return $?
        done
 }