Add remote restic backup

This commit is contained in:
GHOSCHT 2024-05-01 17:50:16 +02:00
parent de24f3c5f6
commit b3feafcaef
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -68,6 +68,7 @@ in {
from: /storage/dataset/docker/dashboard from: /storage/dataset/docker/dashboard
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
before: before:
@ -78,6 +79,7 @@ in {
from: /storage/dataset/docker/dns from: /storage/dataset/docker/dns
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
before: before:
@ -88,6 +90,7 @@ in {
from: /storage/dataset/docker/feed from: /storage/dataset/docker/feed
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
before: before:
@ -99,6 +102,7 @@ in {
to: to:
- zfs - zfs
- ssd - ssd
- eustachius
cron: '0 4 * * *' # Every Day at 4:00 cron: '0 4 * * *' # Every Day at 4:00
hooks: hooks:
before: before:
@ -109,6 +113,7 @@ in {
from: /storage/dataset/docker/media from: /storage/dataset/docker/media
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * *' # Every Day at 4:00 cron: '0 4 * * *' # Every Day at 4:00
hooks: hooks:
before: before:
@ -120,6 +125,7 @@ in {
to: to:
- zfs - zfs
- ssd - ssd
- eustachius
cron: '0 4 * * *' # Every Day at 4:00 cron: '0 4 * * *' # Every Day at 4:00
hooks: hooks:
before: before:
@ -130,6 +136,7 @@ in {
from: /storage/dataset/docker/smarthome from: /storage/dataset/docker/smarthome
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks: hooks:
before: before:
@ -141,6 +148,7 @@ in {
to: to:
- zfs - zfs
- ssd - ssd
- eustachius
cron: '0 4 * * *' # Every Day at 4:00 cron: '0 4 * * *' # Every Day at 4:00
hooks: hooks:
before: before:
@ -151,7 +159,33 @@ in {
from: /storage/dataset/docker/matrix from: /storage/dataset/docker/matrix
to: to:
- zfs - zfs
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00 cron: '0 4 * * 0' # Every Sunday at 4:00
hooks:
before:
- arion -f ${arionPath}/matrix/arion-compose.nix -p ${arionPath}/matrix/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/matrix/arion-compose.nix -p ${arionPath}/matrix/arion-pkgs.nix start
music:
from: /storage/dataset/data/media/music
to:
- eustachius
cron: '0 4 * * 0' # Every Sunday at 4:00
hooks:
before:
- arion -f ${arionPath}/media/arion-compose.nix -p ${arionPath}/media/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/media/arion-compose.nix -p ${arionPath}/media/arion-pkgs.nix start
headscale:
from: /storage/dataset/docker/headscale
to:
- zfs
cron: '55 3 * * *' # Every Day at 3:55
hooks:
before:
- arion -f ${arionPath}/headscale/arion-compose.nix -p ${arionPath}/headscale/arion-pkgs.nix stop
after:
- arion -f ${arionPath}/headscale/arion-compose.nix -p ${arionPath}/headscale/arion-pkgs.nix start
backends: backends:
zfs: zfs:
type: local type: local
@ -162,8 +196,8 @@ in {
path: /home/ghoscht/Backups path: /home/ghoscht/Backups
key: '${config.sops.placeholder."autorestic/ssd_key"}' key: '${config.sops.placeholder."autorestic/ssd_key"}'
eustachius: eustachius:
type: sftp type: rest
path: ghoscht@100.64.0.3:/mnt/Backups path: http://100.64.0.3:8000/Backups
key: '${config.sops.placeholder."autorestic/eustachius_key"}' key: '${config.sops.placeholder."autorestic/eustachius_key"}'
''; '';
}; };