Compare commits
23 Commits
add-new-ba
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
0ce2a19193
|
|||
|
ce998ea006
|
|||
|
ac38930601
|
|||
|
a1c896adff
|
|||
|
dd55c182fb
|
|||
|
0d513a38bf
|
|||
|
ed9c7849c7
|
|||
|
75b2c7395c
|
|||
|
49faba4353
|
|||
|
dd003f6b8d
|
|||
|
a90755bdd7
|
|||
|
7c54deef99
|
|||
|
978f871341
|
|||
|
d765976a36
|
|||
|
628efee595
|
|||
|
57b518b4f4
|
|||
|
7174b1b874
|
|||
|
5f2133a5f1
|
|||
|
037182e2e0
|
|||
|
8ada9f24a6
|
|||
|
6f725f939d
|
|||
|
5fec1312ff
|
|||
|
12ee00b150
|
54
backup.sh
54
backup.sh
@@ -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=()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user