|
|
@ -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"
|
|
|
|