aboutsummaryrefslogtreecommitdiff
path: root/modules/private/databases/openldap_replication.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-02 19:27:02 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-02 19:27:02 +0100
commit4c853ba6f422460ebfb775856920542db6a88fb8 (patch)
treea9770d3656873a7ebea125aa3825426bde75bcf2 /modules/private/databases/openldap_replication.nix
parent36c368d041ea5abb6209f6406d8bcd4eba3462c3 (diff)
downloadNix-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.nix2
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);