21 Commits

Author SHA1 Message Date
ffd5e03aaa backup.sh: legg til 5 nye backup-mål 2026-01-29 15:06:53 +09:00
abd010c51e backup.sh: håndter ekstra rsync argumenter per vert 2026-01-29 14:47:50 +09:00
006dcf0875 backup.sh: håndter manglende eksluderingsliste 2026-01-29 14:43:52 +09:00
8f910ae595 backup.sh: se etter git før vi kjører git 2026-01-28 18:14:04 +09:00
99794ee006 backup.sh: bli kvitt litt declare støy 2026-01-28 18:11:27 +09:00
2482dcc3f8 backup.sh: fjern gamle utkommenterte verter 2026-01-28 18:01:26 +09:00
129f9762ce backup.sh: del opp skriptet i seksjoner 2026-01-28 17:42:47 +09:00
b7e845e837 backup.sh: ikke print alle standard-flaggene for rsync-kommando 2026-01-28 17:42:46 +09:00
a7adff1982 backup.sh: litt penere printing av rsync kommandoer 2026-01-28 17:42:46 +09:00
6c8fa15bc6 backup.sh: sjekk at backup-kataloger har tilsvarende monterte datasett 2026-01-28 17:42:46 +09:00
6ea79323c5 backup.sh: oppdater dokumentasjon om nye bokser og ssh-nøkler 2026-01-28 17:42:46 +09:00
a1c8951a43 backup.sh: tell gjenstående jobber, nevn loggfiler når det oppstår feil 2026-01-28 17:42:46 +09:00
d66df77256 backup.sh: flytt ssh-kommando inn i rsync_flags 2026-01-28 17:42:45 +09:00
d4f6bf563a backup.sh: sett --executablity og --itemize-changes, fjern redundant --hard-links 2026-01-28 17:42:45 +09:00
bd66d24ae6 backup.sh: litt mer beskrivende navn for et par variabler 2026-01-28 17:42:45 +09:00
7289c9b650 backup.sh: mål kjøretiden 2026-01-28 17:42:45 +09:00
382fbcfee1 backup.sh: sjekk at verktøy er på plass før vi kjører 2026-01-28 17:42:45 +09:00
92d593c171 backup.sh: sleng på flere declare og kommentarer 2026-01-28 17:42:45 +09:00
5ad8575311 backup.sh: print tilhørende vert for fullførte rsync kommandoer 2026-01-28 17:42:44 +09:00
3ecc90f34f backup.sh: rapporter ferdige rsync-kommandoer i rekkefølgen de fullfører 2026-01-28 17:42:44 +09:00
74e749464c backup.sh: diverse opprydding 2026-01-28 17:42:34 +09:00
2 changed files with 8 additions and 79 deletions

View File

@@ -170,8 +170,6 @@ homepvv_excludes=(
)
# innovation
# Minecraft-verden kopieres fra /var/backups/minecraft/current/ istf.
# /srv/minecraft-pvv/.
hosts+=("innovation")
innovation_includes=(
"/"
@@ -203,33 +201,6 @@ 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=(
@@ -271,24 +242,6 @@ 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. ===
@@ -332,16 +285,17 @@ 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,10 +1,4 @@
# 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
@@ -26,17 +20,10 @@ Host tom tom.pvv.ntnu.no
User root
IdentityFile ~/.ssh/id_rsa
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
# 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 matrix-media-store-backup
User root
@@ -68,16 +55,4 @@ 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: