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 Google Drive to Backblaze B2
- Switch repository from rclone:gdrive to s3 b2 - Add node_modules exclude pattern - Update secrets
This commit is contained in:
parent
7307eaa6e6
commit
da3d4c46d8
2 changed files with 12 additions and 9 deletions
|
|
@ -1,10 +1,12 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
sops.secrets."restic/password" = { };
|
||||
sops.secrets."restic/rclone-config" = { };
|
||||
sops.secrets = {
|
||||
"restic/password" = {};
|
||||
"restic/env" = {};
|
||||
};
|
||||
|
||||
services.restic.backups.gdrive = {
|
||||
services.restic.backups.b2 = {
|
||||
initialize = true;
|
||||
inhibitsSleep = true;
|
||||
passwordFile = config.sops.secrets."restic/password".path;
|
||||
|
|
@ -12,8 +14,9 @@
|
|||
"/data/Backup"
|
||||
"/home/toast/workspace"
|
||||
];
|
||||
repository = "rclone:gdrive:restic";
|
||||
rcloneConfigFile = config.sops.secrets."restic/rclone-config".path;
|
||||
exclude = [ "node_modules" ];
|
||||
repository = "s3:https://s3.us-east-005.backblazeb2.com/restic-backups-0";
|
||||
environmentFile = config.sops.secrets."restic/env".path;
|
||||
pruneOpts = [
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue