Compare commits
21 Commits
main
...
add-new-ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
ffd5e03aaa
|
|||
|
abd010c51e
|
|||
|
006dcf0875
|
|||
|
8f910ae595
|
|||
|
99794ee006
|
|||
|
2482dcc3f8
|
|||
|
129f9762ce
|
|||
|
b7e845e837
|
|||
|
a7adff1982
|
|||
|
6c8fa15bc6
|
|||
|
6ea79323c5
|
|||
|
a1c8951a43
|
|||
|
d66df77256
|
|||
|
d4f6bf563a
|
|||
|
bd66d24ae6
|
|||
|
7289c9b650
|
|||
|
382fbcfee1
|
|||
|
92d593c171
|
|||
|
5ad8575311
|
|||
|
3ecc90f34f
|
|||
|
74e749464c
|
54
backup.sh
54
backup.sh
@@ -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=()
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user