mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Change backup user to borgbackup
This commit is contained in:
parent
c19282c6ba
commit
85ae50d263
4 changed files with 6 additions and 7 deletions
|
|
@ -24,7 +24,11 @@ in
|
|||
|
||||
postHook = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
default = ''
|
||||
if [ $exitStatus -ne 0 ]; then
|
||||
touch /nix/var/data/backup/backup-ok
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
startAt = mkOption {
|
||||
|
|
@ -49,7 +53,7 @@ in
|
|||
services.borgbackup.jobs.data = {
|
||||
paths = [ "/nix/var/data" cfg.sshKey ] ++ cfg.additionalPaths;
|
||||
doInit = false;
|
||||
repo = "backup@212.129.12.205:./";
|
||||
repo = "borgbackup@212.129.12.205:./";
|
||||
encryption = {
|
||||
mode = "repokey-blake2";
|
||||
passCommand = "cat ${config.sops.secrets.borgPassphrase.path}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue