mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
feat(nixos): migrate restic backups from b2 to rest-server
This commit is contained in:
parent
10516f783a
commit
c10916f47a
1 changed files with 4 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
"restic/env" = {};
|
"restic/env" = {};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.restic.backups.b2 = {
|
services.restic.backups.y2q = {
|
||||||
initialize = true;
|
initialize = true;
|
||||||
inhibitsSleep = true;
|
inhibitsSleep = true;
|
||||||
passwordFile = config.sops.secrets."restic/password".path;
|
passwordFile = config.sops.secrets."restic/password".path;
|
||||||
|
|
@ -15,15 +15,16 @@
|
||||||
"/home/toast/workspace"
|
"/home/toast/workspace"
|
||||||
];
|
];
|
||||||
exclude = [ "node_modules" ];
|
exclude = [ "node_modules" ];
|
||||||
repository = "s3:https://s3.us-east-005.backblazeb2.com/restic-backups-0";
|
repository = "rest:http://y2q:9000/nixos/";
|
||||||
environmentFile = config.sops.secrets."restic/env".path;
|
environmentFile = config.sops.secrets."restic/env".path;
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
|
"--keep-hourly 6"
|
||||||
"--keep-daily 7"
|
"--keep-daily 7"
|
||||||
"--keep-weekly 3"
|
"--keep-weekly 3"
|
||||||
"--keep-monthly 3"
|
"--keep-monthly 3"
|
||||||
];
|
];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
OnCalendar = "daily";
|
OnCalendar = "hourly";
|
||||||
Persistent = true;
|
Persistent = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue