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

View file

@ -91,42 +91,9 @@ in
rclone = { rclone = {
enable = true; 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 = { services = {
borgmatic = {
enable = true;
};
gpg-agent = { gpg-agent = {
enable = true; enable = true;
}; };

View file

@ -614,10 +614,36 @@
users.groups.uinput = { }; 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 #do not change