mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Configure backup for Nextcloud
This commit is contained in:
parent
39f20ed89d
commit
fa9752c4ba
3 changed files with 13 additions and 4 deletions
|
|
@ -5,6 +5,11 @@ let
|
|||
in
|
||||
{
|
||||
options.services.custom-backup-job = {
|
||||
additionalPaths = mkOption {
|
||||
type = with types; listOf path;
|
||||
default = [ ];
|
||||
};
|
||||
|
||||
additionalReadWritePaths = mkOption {
|
||||
type = with types; listOf path;
|
||||
default = [ ];
|
||||
|
|
@ -23,7 +28,7 @@ in
|
|||
|
||||
config = {
|
||||
services.borgbackup.jobs.data = {
|
||||
paths = [ "/nix/var/data" ];
|
||||
paths = [ "/nix/var/data" ] ++ cfg.additionalPaths;
|
||||
doInit = false;
|
||||
repo = "backup@212.129.12.205:./";
|
||||
encryption = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue