better backup name
This commit is contained in:
parent
0add03034e
commit
55d9a9e9f9
|
@ -21,7 +21,7 @@ in
|
||||||
systemd.services."nextcloud-backup" = {
|
systemd.services."nextcloud-backup" = {
|
||||||
script = with pkgs; ''
|
script = with pkgs; ''
|
||||||
set -eu
|
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 = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
|
|
Loading…
Reference in a new issue