invoiceplane: fix backupPrepareCommand command

This commit is contained in:
teutat3s 2024-11-07 18:06:33 +01:00
parent d059239f4c
commit 90c9d4da92
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -72,7 +72,7 @@ in
# See https://www.hosting.de/blog/verschluesselte-backups-mit-rclone-und-restic-in-nextcloud/ # See https://www.hosting.de/blog/verschluesselte-backups-mit-rclone-und-restic-in-nextcloud/
repository = "rclone:cloud.pub.solar:/Backups/InvoicePlane"; repository = "rclone:cloud.pub.solar:/Backups/InvoicePlane";
backupPrepareCommand = '' backupPrepareCommand = ''
${pkgs.mariadb-client}/bin/mariadb-dump --all-databases --user=invoiceplane > "${backupDir}/invoiceplane-mariadb-dump.sql" ${pkgs.sudo}/bin/sudo -u invoiceplane ${pkgs.mariadb-client}/bin/mariadb-dump --all-databases --user=invoiceplane > "${backupDir}/invoiceplane-mariadb-dump.sql"
''; '';
rcloneConfigFile = config.age.secrets."fae-rclone.conf.age".path; rcloneConfigFile = config.age.secrets."fae-rclone.conf.age".path;
}; };