Change backup user to borgbackup

This commit is contained in:
Paul-Henri Froidmont 2022-11-07 03:26:30 +01:00
parent c19282c6ba
commit 85ae50d263
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
4 changed files with 6 additions and 7 deletions

View file

@ -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;
};