diff options
Diffstat (limited to 'modules/private/databases/mariadb_replication.nix')
-rw-r--r-- | modules/private/databases/mariadb_replication.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/databases/mariadb_replication.nix b/modules/private/databases/mariadb_replication.nix index 23648bb..5f97e84 100644 --- a/modules/private/databases/mariadb_replication.nix +++ b/modules/private/databases/mariadb_replication.nix | |||
@@ -136,7 +136,7 @@ in | |||
136 | --all-databases > ${backupDir}/$(${pkgs.coreutils}/bin/date -Iseconds).sql | 136 | --all-databases > ${backupDir}/$(${pkgs.coreutils}/bin/date -Iseconds).sql |
137 | ''; | 137 | ''; |
138 | u = pkgs.callPackage ./utils.nix {}; | 138 | u = pkgs.callPackage ./utils.nix {}; |
139 | cleanup_script = pkgs.writeScript "cleanup_mysql_${name}" (u.exponentialDumps backupDir); | 139 | cleanup_script = pkgs.writeScript "cleanup_mysql_${name}" (u.exponentialDumps "sql" backupDir); |
140 | in [ | 140 | in [ |
141 | "0 22,4,10,16 * * * root ${backup_script}" | 141 | "0 22,4,10,16 * * * root ${backup_script}" |
142 | "0 3 * * * root ${cleanup_script}" | 142 | "0 3 * * * root ${cleanup_script}" |