repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vuls: init at 0.27.0
[NixPkgs.git]
/
nixos
/
tests
/
borgmatic.nix
blob
70ad43e8bd35815deeb9ef5c6d4da0c1dc081082
1
import ./make-test-python.nix ({ pkgs, ... }:
2
{
3
name = "borgmatic";
4
nodes.machine = { ... }: {
5
services.borgmatic = {
6
enable = true;
7
settings = {
8
source_directories = [ "/home" ];
9
repositories = [
10
{
11
label = "local";
12
path = "/var/backup";
13
}
14
];
15
keep_daily = 7;
16
};
17
};
18
};
19
20
testScript = ''
21
machine.succeed("borgmatic rcreate -e none")
22
machine.succeed("borgmatic")
23
'';
24
})