aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2024-11-11 12:39:16 +0100
committerOscar Najera <hi@oscarnajera.com>2024-11-11 12:39:16 +0100
commit939480eab63dc53c570bc51abcdca47ca70c81f9 (patch)
tree4604cedf6b5187c61bd7fa6e5d8804873909c5a7
parent60f92912bb5d31348f660508c9ecff6301eccf1e (diff)
downloaddotfiles-939480eab63dc53c570bc51abcdca47ca70c81f9.tar.gz
dotfiles-939480eab63dc53c570bc51abcdca47ca70c81f9.tar.bz2
dotfiles-939480eab63dc53c570bc51abcdca47ca70c81f9.zip
new backup targets
-rwxr-xr-xbin/backup.sh6
1 files 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