Fix backup script

main
trivernis 1 year ago
parent 3aa05a5374
commit 71c833ed38
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 7E6D18B61C8D2F4B

@ -1,6 +1,6 @@
#!/bin/nu #!/bin/nu
let-env BORG_REPO = '/run/media/trivernis/Backup' $env.BORG_REPO = '/run/media/trivernis/Backup'
let BACKUP_PATHS = [ let BACKUP_PATHS = ([
~/Documents ~/Documents
~/Videos ~/Videos
~/Pictures/ ~/Pictures/
@ -15,7 +15,7 @@ let BACKUP_PATHS = [
/mnt/Data/Audio/ /mnt/Data/Audio/
/mnt/Massdata/ /mnt/Massdata/
/etc /etc
] ] | path expand )
if (pgrep borg | length) > 0 { if (pgrep borg | length) > 0 {
echo "Borg is running" echo "Borg is running"

Loading…
Cancel
Save