From ce998ea0061947ebee0de8b43361d3575c4a6af7 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 31 Jan 2026 10:28:35 +0900 Subject: [PATCH] =?UTF-8?q?backup.sh:=20legg=20til=20backupm=C3=A5l=20for?= =?UTF-8?q?=20balduzius=20(igjen=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup.sh | 10 ++++++++++ ssh_config_backup_targets | 15 +++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index 4bd685a..e9772d1 100755 --- a/backup.sh +++ b/backup.sh @@ -203,6 +203,16 @@ tom_excludes=( "/var/cache/" ) +# balduzius +hosts+=("balduzius") +balduzius_includes=( + "/" +) +balduzius_excludes=( + "/var/cache/" +) +host_ssh_hostname["balduzius"]="balduzius-backup" + # gitea (kommode) hosts+=("gitea") gitea_includes=( diff --git a/ssh_config_backup_targets b/ssh_config_backup_targets index 9dee4fe..7be2fa8 100644 --- a/ssh_config_backup_targets +++ b/ssh_config_backup_targets @@ -1,4 +1,10 @@ # NOTE: this file should be included via the `Include` directive in ~/.ssh/config +# +# NOTE: For the hosts where BatchMode is enabled: +# Because BatchMode is enabled, ssh will refuse to ask about new host-keys. +# If you copy paste one of these to point at a new Hostname, make sure to +# either disable BatchMode and SSH once to register the host in `known_hosts`, +# or ssh with -oStrictHostKeyChecking=accept-new once. Host ameno ameno.pvv.ntnu.no User root @@ -20,10 +26,11 @@ Host tom tom.pvv.ntnu.no User root IdentityFile ~/.ssh/id_rsa -# NOTE: Because BatchMode is enabled, ssh will refuse to ask about new host-keys. -# If you copy paste one of these to point at a new Hostname, make sure to -# either disable BatchMode and SSH once to register the host in `known_hosts`, -# or ssh with -oStrictHostKeyChecking=accept-new once. +Host balduzius-backup + User root + Hostname balduzius.pvv.ntnu.no + IdentityFile /backupz/ssh_extra_keys/id_ed25519_balduzius_rsync_backup + BatchMode yes Host matrix-media-store-backup User root