Compare commits
2 Commits
5ef293448d
...
80cc6522da
Author | SHA1 | Date | |
---|---|---|---|
80cc6522da | |||
26f05a217b |
Binary file not shown.
Binary file not shown.
25
hosts/krypton/backup.nix
Normal file
25
hosts/krypton/backup.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
clerie.backup = {
|
||||
enable = true;
|
||||
jobs.main = {
|
||||
paths = [
|
||||
"/home"
|
||||
"/var/lib"
|
||||
];
|
||||
exclude = [
|
||||
"/home/*/.local/share/Trash/"
|
||||
"/home/*/.config/*.log"
|
||||
"/home/*/.local/*.log"
|
||||
"/home/*/.cache/"
|
||||
"/home/*/.config/*[Cc]ache*/"
|
||||
"/home/*/.mozilla/*/cache/"
|
||||
"/home/*/.thumbnails/"
|
||||
|
||||
"/home/clerie/tmp/"
|
||||
"/home/clere/Downloads/"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
|
||||
../../configuration/desktop
|
||||
|
||||
./backup.nix
|
||||
./network.nix
|
||||
./programs.nix
|
||||
];
|
||||
|
BIN
hosts/krypton/secrets/clerie-backup-job-main.age
Normal file
BIN
hosts/krypton/secrets/clerie-backup-job-main.age
Normal file
Binary file not shown.
BIN
hosts/krypton/secrets/clerie-backup-target-cyan.age
Normal file
BIN
hosts/krypton/secrets/clerie-backup-target-cyan.age
Normal file
Binary file not shown.
11
hosts/krypton/secrets/clerie-backup-target-magenta.age
Normal file
11
hosts/krypton/secrets/clerie-backup-target-magenta.age
Normal file
@ -0,0 +1,11 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 HwR33w VDZ3mtQaW1MsXQ6gan2Xcfv4/8IHHdMsPqCZDuauPEE
|
||||
WSUmbw8NXcgkJf06iNFGsx7tNiVt7VAnynqroRymbkU
|
||||
-> ssh-ed25519 xvh52g ie1NcuCJIJrPX4oklSLXEoxd6YmapsbOr4wf6TrJYEM
|
||||
lx5xuRHZXXG1YuYoDUlvPZxxtfDE1Sv/aStz53mJ4nI
|
||||
-> ,TT@-grease 6JH, x4O9 $E$9`?` &
|
||||
pd1+tQGZkVIl7xbEsdJw9zQiNjy2/83PF+uAaekiLTolgHXmPWIp70ZsL6oHA/G6
|
||||
y1JOCL9l03GSgbpx
|
||||
--- Lv/Xf3QnA523yOR63Gugq9mvfen5+YR2OYwGEim59B4
|
||||
¼JM~Õ«°@gû&’‘V<|ô–Ÿ®fšÑ<l
|
||||
‘Jß–V{¥àتš¸2~i.úªÌ1´á¬<C3A1>Šžg‹ÌRb©NÇŽòe¿Œ9NdßüÚÝ|F%](_À–|
|
@ -43,7 +43,7 @@ let
|
||||
|
||||
restic snapshots || restic init
|
||||
|
||||
restic backup ${escapeShellArgs jobOptions.paths}
|
||||
restic backup ${optionalString (jobOptions.exclude != []) (pkgs.writeText "clerie-backup-${jobName}-${targetName}-excludes" (concatStringsSep "\n" jobOptions.exclude))} ${escapeShellArgs jobOptions.paths}
|
||||
|
||||
restic check
|
||||
|
||||
@ -96,6 +96,10 @@ let
|
||||
paths = mkOption {
|
||||
type = with types; listOf str;
|
||||
};
|
||||
exclude = mkOption {
|
||||
type = with types; listOf str;
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
};
|
||||
in
|
||||
|
Loading…
Reference in New Issue
Block a user