alyssum/snapper: init
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
985b617be1
commit
ac2690c973
3 changed files with 21 additions and 0 deletions
|
|
@ -37,6 +37,7 @@
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./samba.nix
|
./samba.nix
|
||||||
|
./snapper.nix
|
||||||
|
|
||||||
../../users/hana
|
../../users/hana
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
repositoryFile = config.age.secrets.restic_url.path;
|
repositoryFile = config.age.secrets.restic_url.path;
|
||||||
|
|
||||||
paths = ["/flower"];
|
paths = ["/flower"];
|
||||||
|
exclude = ["/.snapshots"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
# every 6 hours
|
# every 6 hours
|
||||||
OnCalendar = "*-*-* 00,06,12,18:00:00";
|
OnCalendar = "*-*-* 00,06,12,18:00:00";
|
||||||
|
|
|
||||||
19
hosts/alyssum/snapper.nix
Normal file
19
hosts/alyssum/snapper.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
{ ... }: {
|
||||||
|
services.snapper = {
|
||||||
|
cleanupInterval = "1h";
|
||||||
|
persistentTimer = true;
|
||||||
|
snapshotInterval = "*-*-* *:00,30:00";
|
||||||
|
configs.home = {
|
||||||
|
FSTYPE = "btrfs";
|
||||||
|
SUBVOLUME = "/flower";
|
||||||
|
TIMELINE_CLEANUP = true;
|
||||||
|
TIMELINE_CREATE = true;
|
||||||
|
TIMELINE_MIN_AGE = "86400";
|
||||||
|
TIMELINE_LIMIT_HOURLY = "24";
|
||||||
|
TIMELINE_LIMIT_DAILY = "7";
|
||||||
|
TIMELINE_LIMIT_WEEKLY = "5";
|
||||||
|
TIMELINE_LIMIT_MONTHLY = "3";
|
||||||
|
TIMELINE_LIMIT_YEARLY = "0";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue