feat: utilise borgmatic to back up several services

/srv folder
immich database
miniflux database
paperless database
syncthing database
This commit is contained in:
wi11-holdsworth 2025-10-01 00:18:48 +10:00
parent 3a679356ad
commit 649f6d048b
5 changed files with 44 additions and 28 deletions

View file

@ -63,24 +63,14 @@ in
};
};
# backup
borgbackup.jobs =
# we only need one syncthing host to be backed up
# choose server because borgbackup is the most fleshed out
# on srv currently
borgmatic.settings =
if userName == "srv" then
import ../backup.nix feature
{
paths = [
"/home/srv/.config/syncthing"
"/home/srv/Sync"
];
}
{
inherit config;
inherit lib;
inherit pkgs;
}
{
source_directories = [
"/home/srv/.config/syncthing"
"/home/srv/Sync"
];
}
else
null;