diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-02 19:27:02 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-01-02 19:27:02 +0100 |
commit | 4c853ba6f422460ebfb775856920542db6a88fb8 (patch) | |
tree | a9770d3656873a7ebea125aa3825426bde75bcf2 /modules/private/databases/openldap_replication.nix | |
parent | 36c368d041ea5abb6209f6406d8bcd4eba3462c3 (diff) | |
download | Nix-4c853ba6f422460ebfb775856920542db6a88fb8.tar.gz Nix-4c853ba6f422460ebfb775856920542db6a88fb8.tar.zst Nix-4c853ba6f422460ebfb775856920542db6a88fb8.zip |
Use minute precision for backups
Diffstat (limited to 'modules/private/databases/openldap_replication.nix')
-rw-r--r-- | modules/private/databases/openldap_replication.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/databases/openldap_replication.nix b/modules/private/databases/openldap_replication.nix index 7833e31..2980c97 100644 --- a/modules/private/databases/openldap_replication.nix +++ b/modules/private/databases/openldap_replication.nix | |||
@@ -120,7 +120,7 @@ in | |||
120 | backup_script = pkgs.writeScript "backup_openldap_${name}" '' | 120 | backup_script = pkgs.writeScript "backup_openldap_${name}" '' |
121 | #!${pkgs.stdenv.shell} | 121 | #!${pkgs.stdenv.shell} |
122 | 122 | ||
123 | ${hcfg.package}/bin/slapcat -b "${hcfg.base}" -f ${ldapConfig hcfg name} -l ${backupDir}/$(${pkgs.coreutils}/bin/date -Iseconds).ldif | 123 | ${hcfg.package}/bin/slapcat -b "${hcfg.base}" -f ${ldapConfig hcfg name} -l ${backupDir}/$(${pkgs.coreutils}/bin/date -Iminutes).ldif |
124 | ''; | 124 | ''; |
125 | u = pkgs.callPackage ./utils.nix {}; | 125 | u = pkgs.callPackage ./utils.nix {}; |
126 | cleanup_script = pkgs.writeScript "cleanup_openldap_${name}" (u.exponentialDumps "ldif" backupDir); | 126 | cleanup_script = pkgs.writeScript "cleanup_openldap_${name}" (u.exponentialDumps "ldif" backupDir); |