working on backups

This commit is contained in:
Matt Nish-Lapidus 2025-05-24 00:07:48 -04:00
parent 52967f6de2
commit 870f29519f
3 changed files with 74 additions and 81 deletions

12
flake.lock generated
View file

@ -785,11 +785,11 @@
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
},
"locked": {
"lastModified": 1747980132,
"narHash": "sha256-jdQZZDMYl9JBtWupRRneP1NLDylf2KPUu8z72tJVBJI=",
"lastModified": 1748033637,
"narHash": "sha256-TetDbakvubacirX9JTzrZ8FePtT8taVv53sbqY61t38=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "d5ccd8c5e6198bdac760ea65dd6c46e83a55b6f6",
"rev": "262837d8190629c4af723e35a7f2a3f49d1afb26",
"type": "github"
},
"original": {
@ -818,11 +818,11 @@
"niri-unstable": {
"flake": false,
"locked": {
"lastModified": 1747977864,
"narHash": "sha256-BEXi6zHNguEsBD3TIUk/2EMOh5c4Z664UaDeUYpWDhw=",
"lastModified": 1748030931,
"narHash": "sha256-34Y9mI/IN9eWZm6v1wQS+TUw1BK9Ed5XBWe8lrVu6RE=",
"owner": "YaLTeR",
"repo": "niri",
"rev": "7fdb918cd04076b173a38f026dc5c27ac830b028",
"rev": "a605a3f016769ba2fd7e2147fe05c9ac3707f973",
"type": "github"
},
"original": {

View file

@ -91,42 +91,9 @@ in
rclone = {
enable = true;
};
borgmatic = {
enable = true;
backups = {
eddie = {
location = {
patterns = [
"R /home/emenel"
"- home/emenel/.cache"
"- home/emenel/.nix*"
"- home/emenel/.steam*"
"- home/emenel/Sync"
"- home/emenel/.BitwigStudio"
"- home/emenel/.local/share/bitwig"
];
repositories = [
{
"path" = "ssh://oyi3ydnz@oyi3ydnz.repo.borgbase.com/./repo";
"label" = "eddie on borgbase";
}
];
};
retention = {
keepDaily = 3;
keepHourly = 3;
keepMonthly = 2;
};
};
};
};
};
services = {
borgmatic = {
enable = true;
};
gpg-agent = {
enable = true;
};

View file

@ -614,10 +614,36 @@
users.groups.uinput = { };
services.borgmatic = {
enable = true;
configurations = {
eddie = {
patterns = [
"R /home/emenel"
"- .cache"
"- .nix*"
"- .steam*"
"- Sync"
"- Mounts"
"- .BitwigStudio"
"- .local/share/bitwig"
"- .local/share/flatpak"
];
repositories = [
{
"path" = "ssh://oyi3ydnz@oyi3ydnz.repo.borgbase.com/./repo";
"label" = "eddie on borgbase";
}
];
keep_daily = 3;
keep_hourly = 3;
keep_monthly = 2;
# btrfs = {
# btrfs_command = "${pkgs.btrfs-progs}/bin/btrfs";
# };
};
};
};
#do not change