23 Commits

Author SHA1 Message Date
0ce2a19193 backup.sh: legg til backupmål for isvegg 2026-01-31 11:04:48 +09:00
ce998ea006 backup.sh: legg til backupmål for balduzius (igjen?) 2026-01-31 11:04:00 +09:00
ac38930601 backup.sh: legg til backupmål for vaultwarden og snappymail 2026-01-31 00:31:01 +09:00
a1c896adff backup.sh: legg til 5 nye backup-mål 2026-01-30 03:18:19 +09:00
dd55c182fb backup.sh: håndter ekstra rsync argumenter per vert 2026-01-30 03:15:58 +09:00
0d513a38bf backup.sh: håndter manglende eksluderingsliste 2026-01-30 03:15:57 +09:00
ed9c7849c7 backup.sh: se etter git før vi kjører git 2026-01-30 03:15:57 +09:00
75b2c7395c backup.sh: bli kvitt litt declare støy 2026-01-30 03:15:57 +09:00
49faba4353 backup.sh: fjern gamle utkommenterte verter 2026-01-30 03:15:57 +09:00
dd003f6b8d backup.sh: del opp skriptet i seksjoner 2026-01-30 03:15:57 +09:00
a90755bdd7 backup.sh: ikke print alle standard-flaggene for rsync-kommando 2026-01-30 03:15:56 +09:00
7c54deef99 backup.sh: litt penere printing av rsync kommandoer 2026-01-30 03:15:56 +09:00
978f871341 backup.sh: sjekk at backup-kataloger har tilsvarende monterte datasett 2026-01-30 03:15:56 +09:00
d765976a36 backup.sh: oppdater dokumentasjon om nye bokser og ssh-nøkler 2026-01-30 03:15:56 +09:00
628efee595 backup.sh: tell gjenstående jobber, nevn loggfiler når det oppstår feil 2026-01-30 03:15:56 +09:00
57b518b4f4 backup.sh: flytt ssh-kommando inn i rsync_flags 2026-01-30 03:15:55 +09:00
7174b1b874 backup.sh: litt mer beskrivende navn for et par variabler 2026-01-30 03:15:55 +09:00
5f2133a5f1 backup.sh: mål kjøretiden 2026-01-30 03:15:55 +09:00
037182e2e0 backup.sh: sjekk at verktøy er på plass før vi kjører 2026-01-30 03:15:55 +09:00
8ada9f24a6 backup.sh: sleng på flere declare og kommentarer 2026-01-30 03:15:54 +09:00
6f725f939d backup.sh: print tilhørende vert for fullførte rsync kommandoer 2026-01-30 03:15:45 +09:00
5fec1312ff backup.sh: rapporter ferdige rsync-kommandoer i rekkefølgen de fullfører 2026-01-30 03:15:44 +09:00
12ee00b150 backup.sh: diverse opprydding 2026-01-30 03:15:43 +09:00
2 changed files with 79 additions and 8 deletions

View File

@@ -170,6 +170,8 @@ homepvv_excludes=(
)
# innovation
# Minecraft-verden kopieres fra /var/backups/minecraft/current/ istf.
# /srv/minecraft-pvv/.
hosts+=("innovation")
innovation_includes=(
"/"
@@ -201,6 +203,33 @@ tom_excludes=(
"/var/cache/"
)
# balduzius
hosts+=("balduzius")
balduzius_includes=(
"/"
)
balduzius_excludes=(
"/var/cache/"
)
host_ssh_hostname["balduzius"]="balduzius-backup"
# isvegg
hosts+=("isvegg")
isvegg_includes=(
"/"
)
isvegg_excludes=(
"/home"
"/nix"
"/scratch"
"/usr/bin/ollama"
"/usr/share/ollama"
"/var/cache/"
"/var/lib/plocate"
"/var/log/journal"
)
host_ssh_hostname["isvegg"]="isvegg-backup"
# gitea (kommode)
hosts+=("gitea")
gitea_includes=(
@@ -242,6 +271,24 @@ postgresql_includes=(
)
host_ssh_hostname["postgresql"]="postgresql-backup"
# vaultwarden (bekkalokk)
hosts+=("vaultwarden")
vaultwarden_includes=(
"/"
)
vaultwarden_excludes=(
"/icon_cache"
"/tmp"
)
host_ssh_hostname["vaultwarden"]="vaultwarden-backup"
# snappymail (bekkalokk)
hosts+=("snappymail")
snappymail_includes=(
"/_data_"
)
host_ssh_hostname["snappymail"]="snappymail-backup"
# === Sjekk at alle backup-kataloger har tilhørende datasett, og at datasettene er montert. ===
@@ -285,17 +332,16 @@ start_time="$(date +%s)"
rsync="/usr/local/bin/rsync"
rsync_flags=(
--archive
--hard-links
--compress
--delete
--exclude=/.zfs/
--executability
--inplace
--itemize-changes
--numeric-ids
--one-file-system
--relative
--rsh="ssh -v"
--stats
--inplace
--exclude=/.zfs/
)
logdir="/backupz/log"
declare -A venteproc=()

View File

@@ -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,17 @@ 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 isvegg-backup
User root
Hostname isvegg.pvv.ntnu.no
IdentityFile /backupz/ssh_extra_keys/id_ed25519_isvegg_rsync_backup
BatchMode yes
Host matrix-media-store-backup
User root
@@ -55,4 +68,16 @@ Host mysql-backup
IdentityFile /backupz/ssh_extra_keys/id_ed25519_mysql_rsync_backup
BatchMode yes
Host vaultwarden-backup
User root
Hostname pw.pvv.ntnu.no
IdentityFile /backupz/ssh_extra_keys/id_ed25519_vaultwarden_rsync_backup
BatchMode yes
Host snappymail-backup
User root
Hostname snappymail.pvv.ntnu.no
IdentityFile /backupz/ssh_extra_keys/id_ed25519_snappymail_rsync_backup
BatchMode yes
# vim: set ft=sshconfig: