exclude file from nextcloud backup
This commit is contained in:
parent
88c9fabcb9
commit
bc627afade
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,7 @@ in
|
||||||
sourceDirectories = [
|
sourceDirectories = [
|
||||||
config.services.nextcloud.datadir
|
config.services.nextcloud.datadir
|
||||||
];
|
];
|
||||||
|
excludePatterns = [".rnd"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue