aboutsummaryrefslogtreecommitdiff
path: root/profiles/git-server.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-07-25 08:46:32 -0700
committerFranck Cuny <franck@fcuny.net>2025-07-25 08:47:10 -0700
commitdb119ccc29ab169a7f35138d5e5d3ba251748ad5 (patch)
treec3ac1c0f26dfa1fed38447a27aa2bf4706d3fc84 /profiles/git-server.nix
parentadd a script to build the VM (diff)
downloadinfra-db119ccc29ab169a7f35138d5e5d3ba251748ad5.tar.gz
add a module for backups
Enable the module on the VM, and backup the git repositories both to the NAS and to a GCS bucket.
Diffstat (limited to '')
-rw-r--r--profiles/git-server.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/profiles/git-server.nix b/profiles/git-server.nix
index 27eebc7..6f523a8 100644
--- a/profiles/git-server.nix
+++ b/profiles/git-server.nix
@@ -22,4 +22,19 @@
defaultBranch = main
''}"
];
+
+ my.modules.backups = {
+ local.paths = [ "/var/lib/gitolite" ];
+ local.exclude = [
+ "/var/lib/gitolite/.bash_history"
+ "/var/lib/gitolite/.ssh"
+ "/var/lib/gitolite/.viminfo"
+ ];
+ remote.paths = [ "/var/lib/gitolite" ];
+ remote.exclude = [
+ "/var/lib/gitolite/.bash_history"
+ "/var/lib/gitolite/.ssh"
+ "/var/lib/gitolite/.viminfo"
+ ];
+ };
}