diff options
| author | Franck Cuny <franck@fcuny.net> | 2023-05-12 11:23:15 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2023-05-12 11:24:09 -0700 |
| commit | 70481fab46f4ef07f0638f9c03a0f6a7f98324de (patch) | |
| tree | 0b4f74537f98628b82427c0a0fe7d6b87f04b63f /hosts/tahoe/services.nix | |
| parent | ops: remove everything under ops (diff) | |
| download | infra-70481fab46f4ef07f0638f9c03a0f6a7f98324de.tar.gz | |
profiles/backup: configure the backup server
It creates the user, ensure sftp is configured correctly, and rsync the
backups to rsync.net once a day.
Diffstat (limited to 'hosts/tahoe/services.nix')
| -rw-r--r-- | hosts/tahoe/services.nix | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index 058d31c..4b29870 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -38,22 +38,6 @@ in ]; exclude = [ ]; }; - - backup.rsync = { - enable = true; - timerConfig = { OnCalendar = "00:15"; }; - sourceDir = "/data/slow/backups/"; - destination = "de2664@de2664.rsync.net:backups/"; - }; - sendsms.enable = true; }; - - services.openssh.sftpServerExecutable = "internal-sftp"; - services.openssh.extraConfig = '' - Match User backup - ChrootDirectory ${config.users.users.backup.home} - ForceCommand internal-sftp - AllowTcpForwarding no - ''; } |
