From f5efaf04a9f5a2465e0673b8aa68c40fb3babf74 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Tue, 18 Dec 2018 11:30:00 +0100 Subject: [PATCH] vaccaria: rdiff-backup --- vaccaria.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vaccaria.nix b/vaccaria.nix index 546c555..d0977cf 100644 --- a/vaccaria.nix +++ b/vaccaria.nix @@ -4,7 +4,6 @@ imports = [ ./common-headless.nix - ./mastus/backup.nix ]; boot.loader.grub.enable = true; @@ -67,6 +66,7 @@ environment.systemPackages = with pkgs; [ transmission samba + rdiff-backup ]; @@ -105,4 +105,8 @@ }; }; + users.extraUsers.gebner.openssh.authorizedKeys.keys = [ + ''command="rdiff-backup --server --restrict-read-only /",no-port-forwarding,no-X11-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCiZhy9mm9sUeomfe9Vj5JhNE4l7YOkj7Yiii5Ni2RzUyj/dc9pxvNJSI+om/ruwb1n2gIYi0bOpwrZGiyvrUrpiqLcOwU6IOYLxnQ3E9nHLX3rsGMIyJtMcoBOcTY/rJMogqA4m6uMaaPEaeBlS5F/qb5UGIvQ7YlW1rF75RJ/QXrdL3Y7R3OJbG90QGR5EThs/1HOEBUKgkEcPQDodzNvZ8hFtznWrCw5bMSQYGMfY4WBc1b7UdLaYZ6vghQgsZ5IyvFDvCNTHTfhObYhv71YMXDkocAyI8XecNP1hoJ67oZ1xn06LEUEMiuXIQ4Ss7RYZLzNc2yrd5RYqCdd4x1n backups@aruanus'' + ]; + }