modules: services: backup: fix exclude files

I was using the wrong option... Somehow it didn't error out.
This commit is contained in:
Bruno BELANYI 2021-08-09 19:55:45 +02:00
parent cf2747a98f
commit 7d09677792

View file

@ -92,9 +92,9 @@ in
services.restic.backups.backblaze = { services.restic.backups.backblaze = {
# Take care of included and excluded files # Take care of included and excluded files
paths = cfg.paths; paths = cfg.paths;
extraOptions = with builtins; with lib;[ extraBackupArgs = [ ]
(optionalString ((length cfg.exclude) != 0) excludeArg) ++ lib.optional (builtins.length cfg.exclude != 0) excludeArg
]; ;
# Take care of creating the repository if it doesn't exist # Take care of creating the repository if it doesn't exist
initialize = true; initialize = true;
# Hijack S3-related env to give B2 API key # Hijack S3-related env to give B2 API key