1
0
Fork 0

exclude file from nextcloud backup

This commit is contained in:
ibizaman 2023-07-22 09:54:19 -07:00
parent 88c9fabcb9
commit bc627afade
2 changed files with 3 additions and 0 deletions

View file

@ -220,6 +220,8 @@ in
backupCleanupCommand = lib.strings.concatStringsSep "\n" instance.hooks.after_backup; backupCleanupCommand = lib.strings.concatStringsSep "\n" instance.hooks.after_backup;
} // lib.attrsets.optionalAttrs (instance.environmentFile) { } // lib.attrsets.optionalAttrs (instance.environmentFile) {
environmentFile = "/run/secrets/${instance.backend}/${name}/environmentfile"; environmentFile = "/run/secrets/${instance.backend}/${name}/environmentfile";
} // lib.attrsets.optionalAttrs (builtins.length instance.excludePatterns > 0) {
exclude = instance.excludePatterns;
}; };
}; };

View file

@ -108,6 +108,7 @@ in
sourceDirectories = [ sourceDirectories = [
config.services.nextcloud.datadir config.services.nextcloud.datadir
]; ];
excludePatterns = [".rnd"];
}; };
}; };
} }