mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
run nuc backups every 6 hours
This commit is contained in:
parent
8064ba74cc
commit
bb546c35c6
3 changed files with 29 additions and 21 deletions
12
flake.lock
12
flake.lock
|
@ -38,11 +38,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1682333170,
|
||||
"narHash": "sha256-yrJIk5/ONaX0QVQoq67DzNPW7epOuiwAM9FY9xFrE8k=",
|
||||
"lastModified": 1682347289,
|
||||
"narHash": "sha256-BQHY4lzS3Tkx4XLmZPR5FSjKWMP+cKNtUM8pTC4L9Ek=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "6f9781b1b0cf3fedbe9d2d0a785aeec4d6085c10",
|
||||
"rev": "0263da497eae3246ea15ed6f0f7875bc15592cef",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -391,11 +391,11 @@
|
|||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1682275062,
|
||||
"narHash": "sha256-+Z0szchvOKkiNoBU6HO9N9xORj9AlEUccPe3Bsn1Mvo=",
|
||||
"lastModified": 1682345099,
|
||||
"narHash": "sha256-UmVuGvrOrL2iSZOf3sqzJAtbI9Y1BVAOHOdCBCI6W10=",
|
||||
"owner": "hyprwm",
|
||||
"repo": "xdg-desktop-portal-hyprland",
|
||||
"rev": "7d3da7e9686df82bb595857e1fde0cf235ad5fba",
|
||||
"rev": "f9f08c802e96ede147f25f724977a156324a4cf4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -15,24 +15,28 @@
|
|||
};
|
||||
|
||||
services.btrbk = {
|
||||
instances."nuc-to-disk".settings = {
|
||||
snapshot_preserve = "14d";
|
||||
snapshot_preserve_min = "2d";
|
||||
target_preserve = "30d 4w 12m";
|
||||
target_preserve_min = "2d";
|
||||
volume = {
|
||||
"/mnt/pool" = {
|
||||
subvolume = {
|
||||
log = {
|
||||
snapshot_create = "always";
|
||||
};
|
||||
lib = {
|
||||
snapshot_create = "always";
|
||||
instances."nuc-to-disk" =
|
||||
{
|
||||
settings = {
|
||||
snapshot_preserve = "14d";
|
||||
snapshot_preserve_min = "2d";
|
||||
target_preserve = "30d 4w 12m";
|
||||
target_preserve_min = "2d";
|
||||
volume = {
|
||||
"/mnt/pool" = {
|
||||
subvolume = {
|
||||
log = {
|
||||
snapshot_create = "always";
|
||||
};
|
||||
lib = {
|
||||
snapshot_create = "always";
|
||||
};
|
||||
};
|
||||
target = "/mnt/backup/nuc";
|
||||
};
|
||||
};
|
||||
target = "/mnt/backup/nuc";
|
||||
};
|
||||
onCalendar = "*-*-* */6:00:00";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
prompt_dir() {
|
||||
prompt_segment blue $CURRENT_FG '%c'
|
||||
}
|
||||
|
||||
witch() {
|
||||
readlink -f $(which $1)
|
||||
}
|
||||
cat ${../images/cat.sixel}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue