about summary refs log tree commit diff
path: root/nixos/modules/services/backup/tarsnap.nix
diff options
context:
space:
mode:
authorLorenzo Manacorda <lorenzo@mailbox.org>2021-01-10 16:44:12 +0200
committerLorenzo Manacorda <lorenzo@mailbox.org>2021-01-10 16:47:15 +0200
commitb6356c6e2e181241e460f2e21527db2d9df955b1 (patch)
tree106959ea77abb6833c988614b884dc9428f87912 /nixos/modules/services/backup/tarsnap.nix
parent9f8b7cb4a8948afe0701e5d717a4ee9cbf38163c (diff)
modules/tarsnap: document timestamp format
Diffstat (limited to 'nixos/modules/services/backup/tarsnap.nix')
-rw-r--r--nixos/modules/services/backup/tarsnap.nix11
1 files changed, 3 insertions, 8 deletions
diff --git a/nixos/modules/services/backup/tarsnap.nix b/nixos/modules/services/backup/tarsnap.nix
index e1200731c2ca7..d31b92abde0a5 100644
--- a/nixos/modules/services/backup/tarsnap.nix
+++ b/nixos/modules/services/backup/tarsnap.nix
@@ -29,13 +29,7 @@ in
 
   options = {
     services.tarsnap = {
-      enable = mkOption {
-        type = types.bool;
-        default = false;
-        description = ''
-          Enable periodic tarsnap backups.
-        '';
-      };
+      enable = mkEnableOption "periodic tarsnap backups";
 
       keyfile = mkOption {
         type = types.str;
@@ -279,7 +273,8 @@ in
           Tarsnap archive configurations. Each attribute names an archive
           to be created at a given time interval, according to the options
           associated with it. When uploading to the tarsnap server,
-          archive names are suffixed by a 1 second resolution timestamp.
+          archive names are suffixed by a 1 second resolution timestamp,
+          with the format <literal>%Y%m%d%H%M%S</literal>.
 
           For each member of the set is created a timer which triggers the
           instanced <literal>tarsnap-archive-name</literal> service unit. You may use