From 1c90c0dd73b5b74612be736ac8deeaa4547e2c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 10 Jun 2024 13:13:11 +0200 Subject: Migrate to borg backup --- systems/eldiron/gitolite/default.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'systems/eldiron/gitolite') diff --git a/systems/eldiron/gitolite/default.nix b/systems/eldiron/gitolite/default.nix index 1885234..0882c18 100644 --- a/systems/eldiron/gitolite/default.nix +++ b/systems/eldiron/gitolite/default.nix @@ -11,6 +11,22 @@ in { }; config = lib.mkIf cfg.enable { + services.borgBackup.profiles.global.ignoredPaths = [ + "gitolite/.nix-.*" + "gitolite/.ssh" + "gitolite/.vim.*" + "gitolite/.bash_history" + ]; + services.borgBackup.profiles.global.includedPaths = [ + "gitolite/gitolite_ldap_groups.sh" + "gitolite/projects.list" + "gitolite/.gitolite.rc" + "gitolite/.gitolite" + "gitolite/repositories/github" + "gitolite/repositories/testing.git" + "gitolite/repositories/gitolite-admin.git" + + ]; myServices.dns.zones."immae.eu".subdomains.git = with config.myServices.dns.helpers; ips servers.eldiron.ips.main; -- cgit v1.2.3