diff options
author | talyz <kim.lindberger@gmail.com> | 2021-06-04 16:08:41 +0200 |
---|---|---|
committer | talyz <kim.lindberger@gmail.com> | 2021-06-04 21:42:08 +0200 |
commit | 59e0120aa5c1241d48048afa615e25c65d7e366d (patch) | |
tree | 111459a037a28160ca6b46e5b624d4e03a2ad2d9 /nixos/modules/services/backup | |
parent | f36a65f6e2e9f3641f12c7d6e48a5ec4b5c5394b (diff) | |
download | nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar.gz nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar.bz2 nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar.lz nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar.xz nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.tar.zst nixpkgs-59e0120aa5c1241d48048afa615e25c65d7e366d.zip |
treewide: Fix mysql alias deprecation breakage
62733b37b4a866cabafe1fc8bb7415240126eb0b broke evaluation in all places `pkgs.mysql` was used. Fix this by changing all occurrences to `pkgs.mariadb`.
Diffstat (limited to 'nixos/modules/services/backup')
-rw-r--r-- | nixos/modules/services/backup/mysql-backup.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/backup/mysql-backup.nix b/nixos/modules/services/backup/mysql-backup.nix index 506ded5e9e8..9fca2100273 100644 --- a/nixos/modules/services/backup/mysql-backup.nix +++ b/nixos/modules/services/backup/mysql-backup.nix @@ -4,7 +4,7 @@ with lib; let - inherit (pkgs) mysql gzip; + inherit (pkgs) mariadb gzip; cfg = config.services.mysqlBackup; defaultUser = "mysqlbackup"; @@ -20,7 +20,7 @@ let ''; backupDatabaseScript = db: '' dest="${cfg.location}/${db}.gz" - if ${mysql}/bin/mysqldump ${if cfg.singleTransaction then "--single-transaction" else ""} ${db} | ${gzip}/bin/gzip -c > $dest.tmp; then + if ${mariadb}/bin/mysqldump ${if cfg.singleTransaction then "--single-transaction" else ""} ${db} | ${gzip}/bin/gzip -c > $dest.tmp; then mv $dest.tmp $dest echo "Backed up to $dest" else |