feat: add games and books rsync target

This commit is contained in:
Nydragon 2024-12-01 01:56:00 +01:00
parent d7c231b017
commit 52fe1d2847
Signed by: nydragon
SSH key fingerprint: SHA256:WcjW5NJPQ8Dx4uQDmoIlVPLWE27Od3fxoe0IUvuoPHE
2 changed files with 13 additions and 2 deletions

View file

@ -47,7 +47,17 @@
} }
{ {
name = "movies"; name = "movies";
comment = "backup location for movies shows"; comment = "backup location for movies and shows";
mode = "write";
}
{
name = "books";
comment = "backup location for books";
mode = "write";
}
{
name = "games";
comment = "backup location for games";
mode = "write"; mode = "write";
} }
]; ];

View file

@ -82,7 +82,8 @@ in
serviceConfig = serviceConfigSecurity // { serviceConfig = serviceConfigSecurity // {
ExecStart = "${pkgs.rsync}/bin/rsync --daemon --no-detach --config=${configFile}"; ExecStart = "${pkgs.rsync}/bin/rsync --daemon --no-detach --config=${configFile}";
RestartSec = 1; RestartSec = 15;
Restart = "always";
}; };
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];