implement bjornfors comments
This commit is contained in:
parent
cd98acd3a7
commit
fa1f5e5b75
@ -9,16 +9,23 @@ in
|
|||||||
services.rsnapshot = {
|
services.rsnapshot = {
|
||||||
enable = mkEnableOption "rsnapshot backups";
|
enable = mkEnableOption "rsnapshot backups";
|
||||||
|
|
||||||
configuration = mkOption {
|
extraConfiguration = mkOption {
|
||||||
default = "";
|
default = "";
|
||||||
example = ''
|
example = ''
|
||||||
retain hourly 24
|
retains hourly 24
|
||||||
retain daily 365
|
retain daily 365
|
||||||
backup /home/ localhost/
|
backup /home/ localhost/
|
||||||
'';
|
'';
|
||||||
type = types.lines;
|
type = types.lines;
|
||||||
description = ''
|
description = ''
|
||||||
rsnapshot configuration option in addition to the defaults from rsnapshot and this module.
|
rsnapshot configuration option in addition to the defaults from
|
||||||
|
rsnapshot and this module.
|
||||||
|
|
||||||
|
Note that tabs are required to separate option arguments, and
|
||||||
|
directory names require trailing slashes.
|
||||||
|
|
||||||
|
The "extra" in the option name might be a little misleading right
|
||||||
|
now, as it is required to get a functional configuration.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -27,9 +34,9 @@ in
|
|||||||
example = { "hourly" = "0 * * * *"; "daily" = "50 21 * * *"; };
|
example = { "hourly" = "0 * * * *"; "daily" = "50 21 * * *"; };
|
||||||
type = types.attrsOf types.string;
|
type = types.attrsOf types.string;
|
||||||
description = ''
|
description = ''
|
||||||
Periodicity at which intervals should be run by cron.
|
Periodicity at which intervals should be run by cron.
|
||||||
Note that the intervals also have to exist in configuration
|
Note that the intervals also have to exist in configuration
|
||||||
as retain options.
|
as retain options.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -51,6 +58,6 @@ in
|
|||||||
cmd_rsnapshot_diff ${rsnapshot}/bin/rsnapshot-diff
|
cmd_rsnapshot_diff ${rsnapshot}/bin/rsnapshot-diff
|
||||||
lockfile /run/rsnapshot.pid
|
lockfile /run/rsnapshot.pid
|
||||||
|
|
||||||
'' + cfg.configuration);
|
'' + cfg.extraConfiguration);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user