set up snapshot_manager
This commit is contained in:
parent
0dc241c2fb
commit
f5142440e5
@ -113,11 +113,26 @@
|
|||||||
zfs = {
|
zfs = {
|
||||||
trim.enable = true;
|
trim.enable = true;
|
||||||
autoScrub.enable = true;
|
autoScrub.enable = true;
|
||||||
autoSnapshot = {
|
|
||||||
enable = true;
|
|
||||||
frequent = 8;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services.snapshot_manager = {
|
||||||
|
description = "ZFS Snapshot Manager";
|
||||||
|
requires = [ "zfs-import.target" ];
|
||||||
|
after = [ "zfs-import.target" ];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = "${pkgs.python}/bin/python -m zfs.snapshot_manager --config-file='/ZFS/Media/Scripts/new/config.toml'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
systemd.timers.snapshot_manager = {
|
||||||
|
description = "ZFS Snapshot Manager";
|
||||||
|
service = "snapshot_manager";
|
||||||
|
timerConfig = {
|
||||||
|
OnBootSec = "15m";
|
||||||
|
OnUnitActiveSec = "15m";
|
||||||
|
Unit = "snapshot_manager.service";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
@ -61,5 +61,6 @@
|
|||||||
"python.analysis.typeCheckingMode": "basic",
|
"python.analysis.typeCheckingMode": "basic",
|
||||||
"redhat.telemetry.enabled": true,
|
"redhat.telemetry.enabled": true,
|
||||||
"gitlens.plusFeatures.enabled": false,
|
"gitlens.plusFeatures.enabled": false,
|
||||||
"github.copilot.editor.enableAutoCompletions": true
|
"github.copilot.editor.enableAutoCompletions": true,
|
||||||
|
"explorer.confirmPasteNative": false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user