diff options
Diffstat (limited to 'modules/private/databases/redis_replication.nix')
-rw-r--r-- | modules/private/databases/redis_replication.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/databases/redis_replication.nix b/modules/private/databases/redis_replication.nix index 6ec52c9..a3fe3bb 100644 --- a/modules/private/databases/redis_replication.nix +++ b/modules/private/databases/redis_replication.nix | |||
@@ -117,7 +117,7 @@ in | |||
117 | #!${pkgs.stdenv.shell} | 117 | #!${pkgs.stdenv.shell} |
118 | 118 | ||
119 | ${pkgs.coreutils}/bin/cp ${cfg.base}/${name}/redis/dump.rdb \ | 119 | ${pkgs.coreutils}/bin/cp ${cfg.base}/${name}/redis/dump.rdb \ |
120 | ${backupDir}/$(${pkgs.coreutils}/bin/date -Iseconds).rdb | 120 | ${backupDir}/$(${pkgs.coreutils}/bin/date -Iminutes).rdb |
121 | ''; | 121 | ''; |
122 | u = pkgs.callPackage ./utils.nix {}; | 122 | u = pkgs.callPackage ./utils.nix {}; |
123 | cleanup_script = pkgs.writeScript "cleanup_redis_${name}" (u.exponentialDumps "rdb" backupDir); | 123 | cleanup_script = pkgs.writeScript "cleanup_redis_${name}" (u.exponentialDumps "rdb" backupDir); |