aboutsummaryrefslogtreecommitdiff
path: root/systems/backup-2/databases/mariadb_replication.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2024-10-13 01:40:22 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2025-03-14 00:53:43 +0100
commit3f2e6a39f854db44e68af11abe7c2e3dbf76fc12 (patch)
tree8ab257b291e76d519dbdda29d248f159454618e4 /systems/backup-2/databases/mariadb_replication.nix
parent0c80bdffd3beb43481d2938589b061d72572b17b (diff)
downloadNix-3f2e6a39f854db44e68af11abe7c2e3dbf76fc12.tar.gz
Nix-3f2e6a39f854db44e68af11abe7c2e3dbf76fc12.tar.zst
Nix-3f2e6a39f854db44e68af11abe7c2e3dbf76fc12.zip
Fix dump mysql, allow the dumps to be used for initial import
Diffstat (limited to 'systems/backup-2/databases/mariadb_replication.nix')
-rw-r--r--systems/backup-2/databases/mariadb_replication.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/systems/backup-2/databases/mariadb_replication.nix b/systems/backup-2/databases/mariadb_replication.nix
index c085682..ba38a26 100644
--- a/systems/backup-2/databases/mariadb_replication.nix
+++ b/systems/backup-2/databases/mariadb_replication.nix
@@ -159,7 +159,7 @@ in
159 --defaults-file=${config.secrets.fullPaths."mysql_replication/${name}/mysqldump"} \ 159 --defaults-file=${config.secrets.fullPaths."mysql_replication/${name}/mysqldump"} \
160 -S /run/mysqld_${name}/mysqld.sock \ 160 -S /run/mysqld_${name}/mysqld.sock \
161 --gtid \ 161 --gtid \
162 --master-data \ 162 --dump-slave \
163 --flush-privileges \ 163 --flush-privileges \
164 --all-databases > $filename 164 --all-databases > $filename
165 ${pkgs.gzip}/bin/gzip $filename 165 ${pkgs.gzip}/bin/gzip $filename