fix ssh url
This commit is contained in:
parent
c5ee7d11e0
commit
af77965d9d
2 changed files with 9 additions and 2 deletions
|
|
@ -137,6 +137,7 @@ in
|
||||||
group = "users";
|
group = "users";
|
||||||
uid = 993;
|
uid = 993;
|
||||||
home = "/backups/picard";
|
home = "/backups/picard";
|
||||||
|
shell = "/run/current-system/sw/bin/bash";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
''command="${pkgs.borgbackup}/bin/borg serve --restrict-to-path /backups/picard/",restrict ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHvCF8KGgpF9O8Q7k+JXqZ5eMeEeTaMhCIk/2ZFOzXL0''
|
''command="${pkgs.borgbackup}/bin/borg serve --restrict-to-path /backups/picard/",restrict ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHvCF8KGgpF9O8Q7k+JXqZ5eMeEeTaMhCIk/2ZFOzXL0''
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
configurations."picard-ds9" = {
|
configurations."picard-ds9" = {
|
||||||
location = {
|
location = {
|
||||||
source_directories = [ "/persistent" ];
|
source_directories = [ "/persistent" ];
|
||||||
repositories = [ "picardbackup@ds9:/backups/picard/borgmatic" ];
|
repositories = [ "ssh://picardbackup@ds9/backups/picard/borgmatic" ];
|
||||||
exclude_if_present = [ ".nobackup" ];
|
exclude_if_present = [ ".nobackup" ];
|
||||||
};
|
};
|
||||||
storage = {
|
storage = {
|
||||||
|
|
@ -139,11 +139,17 @@
|
||||||
in
|
in
|
||||||
"ssh -o GlobalKnownHostsFile=${fl} -i ${config.age.secrets.picardResticSSHKey.path}";
|
"ssh -o GlobalKnownHostsFile=${fl} -i ${config.age.secrets.picardResticSSHKey.path}";
|
||||||
};
|
};
|
||||||
|
retention = {
|
||||||
|
keep_daily = 7;
|
||||||
|
keep_weekly = 4;
|
||||||
|
keep_monthly = 12;
|
||||||
|
keep_yearly = 10;
|
||||||
|
};
|
||||||
hooks = {
|
hooks = {
|
||||||
before_actions = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})/start" ];
|
before_actions = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})/start" ];
|
||||||
after_actions = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})" ];
|
after_actions = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})" ];
|
||||||
on_error = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})/fail" ];
|
on_error = [ "${pkgs.curl}/bin/curl -fss -m 10 --retry 5 -o /dev/null $(${pkgs.coreutils}/bin/cat ${config.age.secrets.picardResticHealthCheckUrl.path})/fail" ];
|
||||||
postgresql_databases = [{ name = "all"; }];
|
postgresql_databases = [{ name = "all"; pg_dump_command = "${pkgs.postgresql}/bin/pg_dumpall"; pg_restore_command = "${pkgs.postgresql}/bin/pg_restore"; }];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue