update borg backup

This commit is contained in:
Ingolf Wagner 2022-02-01 16:20:41 +01:00
parent adc6487ae0
commit a5bab6cae2
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 21 additions and 34 deletions

View file

@ -111,7 +111,6 @@
after = [ "media.mount" ];
};
backup.dirs = [
config.services.syncthing.folders.finance.path
];

View file

@ -1,15 +1,15 @@
{ lib, config, pkgs, ... }: {
#services.borgbackup.repos = {
# default = {
# quota = "100G";
# allowSubRepos = true;
# authorizedKeys = [
# (lib.fileContents ../../assets/ssh/borg_access.pub)
# (lib.fileContents ../../assets/ssh/card_rsa.pub)
# ];
# };
#};
services.borgbackup.repos = {
default = {
quota = "300G";
allowSubRepos = true;
authorizedKeys = [
(lib.fileContents ../../assets/ssh/borg_access.pub)
(lib.fileContents ../../assets/ssh/card_rsa.pub)
];
};
};
# mirror backup folder to /media
#systemd.services.borg-mirror-to-media = {

View file

@ -8,11 +8,11 @@
../../system/all/sshd-known-hosts-public.nix
../../system/all/syncthing.nix
../../system/all/tinc.nix
../../system/server/netdata.nix
./hetzner.nix
./borg.nix
./codimd.nix
./gitea.nix
./grocy.nix
@ -29,7 +29,6 @@
#./hardware-configuration.nix
#./mail-fetcher.nix
#./borg.nix
#./finance.nix
#./grafana.nix
#./graylog.nix
@ -75,6 +74,12 @@
fsType = "ext4";
};
fileSystems."/var/lib/borgbackup" =
{
device = "/dev/vg/borg";
fsType = "ext4";
};
fileSystems."/media" =
{
device = "/dev/vg/media";

View file

@ -20,25 +20,6 @@
folders = {
# on encrypted hard drive
# -----------------------
#private = {
# enable = true;
# path = "/home/syncthing/private";
#};
#desktop = {
# enable = true;
# path = "/home/syncthing/desktop";
#};
#finance = {
# enable = true;
# path = "/home/syncthing/finance";
#};
#fotos = {
# enable = true;
# path = "/home/syncthing/fotos";
#};
# on media hard drive (not encrypted)
# -----------------------------------
#borg-mirror = {
@ -107,6 +88,4 @@
after = [ "media.mount" ];
};
#backup.dirs = [ "/home/syncthing/finance" ];
}

View file

@ -29,6 +29,10 @@
let
servers = [
{
name = "robi";
host = "144.76.13.147";
}
{
name = "pepe";
host = "pepe.private";