From 71c833ed3855194b7d0a025c82eeadac86da56b2 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 13 Aug 2023 21:49:10 +0200 Subject: [PATCH] Fix backup script --- dot_local/share/scripts/executable_backup.nu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_local/share/scripts/executable_backup.nu b/dot_local/share/scripts/executable_backup.nu index e1e58c9..65bcdc9 100644 --- a/dot_local/share/scripts/executable_backup.nu +++ b/dot_local/share/scripts/executable_backup.nu @@ -1,6 +1,6 @@ #!/bin/nu -let-env BORG_REPO = '/run/media/trivernis/Backup' -let BACKUP_PATHS = [ +$env.BORG_REPO = '/run/media/trivernis/Backup' +let BACKUP_PATHS = ([ ~/Documents ~/Videos ~/Pictures/ @@ -15,7 +15,7 @@ let BACKUP_PATHS = [ /mnt/Data/Audio/ /mnt/Massdata/ /etc -] +] | path expand ) if (pgrep borg | length) > 0 { echo "Borg is running"