borgbackup: add gitolite to the backup
This commit is contained in:
parent
7f2ba45f29
commit
bc113c5d69
|
@ -64,4 +64,25 @@ in
|
||||||
extraArgs = "--info";
|
extraArgs = "--info";
|
||||||
extraCreateArgs = "--stats";
|
extraCreateArgs = "--stats";
|
||||||
};
|
};
|
||||||
|
services.borgbackup.jobs.gitolite = {
|
||||||
|
readWritePaths = [ "/var/lib/borgbackup" ];
|
||||||
|
paths = "/srv/gitolite";
|
||||||
|
exclude = [ ];
|
||||||
|
repo = "mail2@host01.hamburg.freifunk.net:gitolite";
|
||||||
|
prune.keep = {
|
||||||
|
daily = 7;
|
||||||
|
weekly = 2;
|
||||||
|
};
|
||||||
|
encryption = {
|
||||||
|
mode = "repokey";
|
||||||
|
passCommand = "${borgPassCommand}";
|
||||||
|
};
|
||||||
|
environment = {
|
||||||
|
BORG_RSH = "${pkgs.openssh}/bin/ssh -i /var/lib/borgbackup/sshkey";
|
||||||
|
};
|
||||||
|
compression = "auto,lz4";
|
||||||
|
startAt = "daily";
|
||||||
|
extraArgs = "--info";
|
||||||
|
extraCreateArgs = "--stats";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue