mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36: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
|
|
@ -38,7 +38,6 @@
|
|||
enable = true;
|
||||
readWritePaths = [ "/nix/var/data/backup" ];
|
||||
preHook = "${pkgs.docker}/bin/docker exec stb-mariadb sh -c 'mysqldump -u stb -pstb stb' > /nix/var/data/backup/stb_mariadb.sql";
|
||||
postHook = "touch /nix/var/data/backup/backup-ok";
|
||||
startAt = "04:00";
|
||||
sshKey = config.sops.secrets.borgSshKey.path;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue