feat: utilise borgmatic to back up several services
/srv folder immich database miniflux database paperless database syncthing database
This commit is contained in:
parent
3a679356ad
commit
649f6d048b
5 changed files with 44 additions and 28 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue