From 939480eab63dc53c570bc51abcdca47ca70c81f9 Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Mon, 11 Nov 2024 12:39:16 +0100 Subject: new backup targets --- bin/backup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/backup.sh b/bin/backup.sh index 9f53249..5a898fb 100755 --- a/bin/backup.sh +++ b/bin/backup.sh @@ -50,13 +50,13 @@ backup_local() { } BASIC_PATHS=(~/dev/ ~/org/ ~/.mail/ ~/.bogofilter/ ~/Nextcloud/) -backup_local Admin/sarah/borg/ingrid ssh://borgbackup@sarah/./repos/ingrid "${BASIC_PATHS[@]}" +backup_local Admin/sarah/borg/ingrid ssh://borgbackup@nina/./repos/ingrid "${BASIC_PATHS[@]}" DISK=/run/media/titan/ext_backup if [ -d "$DISK" ]; then LARGER_PATHS=("$DISK/personal/Pictures/" "$DISK/personal/Libros/" "$DISK/personal/dev/" "$DISK/Archives/") - backup_local Admin/sarah/borg/oscar ssh://borgbackup@sarah/./repos/oscar "${LARGER_PATHS[@]}" - if ping -c 1 -W 1 192.168.178.128 >/dev/null; then + backup_local Admin/sarah/borg/oscar ssh://borgbackup@nina/./repos/oscar "${LARGER_PATHS[@]}" + if ping -c 1 -W 1 192.168.178.40 >/dev/null; then backup_local borgbackup ssh://backup/media/Backup/daily_backup/ "${BASIC_PATHS[@]}" "${LARGER_PATHS[@]}" fi fi -- cgit v1.2.3