forked from pub-solar/os
invoiceplane: fix backupPrepareCommand command
This commit is contained in:
parent
d059239f4c
commit
90c9d4da92
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue