From 3fc85de8777eff0bc1df6ffde9ecc1dbe9dfea50 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sat, 9 Jun 2018 04:24:36 +0200 Subject: [PATCH] Add apollo backups --- hosts/apollo/configuration.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hosts/apollo/configuration.nix b/hosts/apollo/configuration.nix index db4c939c..bbd69bf1 100644 --- a/hosts/apollo/configuration.nix +++ b/hosts/apollo/configuration.nix @@ -34,6 +34,18 @@ boot = { supportedFilesystems = [ "exfat" ]; }; +services = { + borgbackup.jobs.data = { + doInit = false; + startAt = []; + exclude = [ "/home/${me.user}/data/media" ]; + encryption.mode = "none"; + paths = "/home/${me.user}/data"; + repo = "borg@borg:."; + compression = "zstd,22"; + }; +}; + cdark_net = { enable = true; hostName = "${me.user}_${config.networking.hostName}";