fix: use proper docker binary path in firefly backup

This commit is contained in:
Benjamin Bädorf 2023-10-09 23:09:24 +02:00
parent 6f6140f660
commit fd022bb3d5
No known key found for this signature in database
GPG key ID: 4406E80E13CD656C

View file

@ -124,7 +124,7 @@ in {
# See https://www.hosting.de/blog/verschluesselte-backups-mit-rclone-und-restic-in-nextcloud/
repository = "rclone:cloud.pub.solar:/backups/FireflyIII";
backupPrepareCommand = ''
docker exec -t firefly-db pg_dumpall -c -U postgres > "${backupDir}/postgres.sql"
${pkgs.docker-client}/bin/docker exec -t firefly-db pg_dumpall -c -U firefly > "${backupDir}/postgres.sql"
'';
rcloneConfigFile = config.age.secrets."rclone-pie.conf".path;
};