better backup name
This commit is contained in:
parent
0add03034e
commit
55d9a9e9f9
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue