better backup name

This commit is contained in:
glenn 2024-05-05 22:03:04 +02:00
parent 0add03034e
commit 55d9a9e9f9

View file

@ -21,7 +21,7 @@ in
systemd.services."nextcloud-backup" = {
script = with pkgs; ''
set -eu
${postgresql}/bin/pg_dump "nextcloud" | ${openssh}/bin/ssh -i /etc/nixos/.secrets/tulpan Glenn@nas "cat - > back/nextcloud/dump.sql"
${postgresql}/bin/pg_dump "nextcloud" | ${openssh}/bin/ssh -i /etc/nixos/.secrets/tulpan Glenn@nas "cat - > back/nextcloud/latest.sql"
'';
serviceConfig = {
Type = "oneshot";