1
0
forked from clan/clan-core

borgbackup: try to fix

This commit is contained in:
a-kenji 2024-06-04 16:27:53 +02:00
parent c6fcb833b3
commit 3d71ebcc5f

View File

@ -111,7 +111,7 @@ in
(pkgs.writeShellScriptBin "borgbackup-restore" ''
set -efux
cd /
IFS=';' read -ra FOLDER <<< "$FOLDERS"
IFS=':' read -ra FOLDER <<< "$FOLDERS"
job_name=$(echo "$NAME" | ${pkgs.gawk}/bin/awk -F'::' '{print $1}')
backup_name=''${NAME#"$job_name"::}
if ! command -v borg-job-"$job_name" &> /dev/null; then