update borg backup
This commit is contained in:
parent
adc6487ae0
commit
a5bab6cae2
5 changed files with 21 additions and 34 deletions
|
@ -111,7 +111,6 @@
|
|||
after = [ "media.mount" ];
|
||||
};
|
||||
|
||||
|
||||
backup.dirs = [
|
||||
config.services.syncthing.folders.finance.path
|
||||
];
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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" ];
|
||||
|
||||
}
|
||||
|
|
|
@ -29,6 +29,10 @@
|
|||
let
|
||||
|
||||
servers = [
|
||||
{
|
||||
name = "robi";
|
||||
host = "144.76.13.147";
|
||||
}
|
||||
{
|
||||
name = "pepe";
|
||||
host = "pepe.private";
|
||||
|
|
Loading…
Reference in a new issue