Created
June 24, 2022 22:56
-
-
Save ThinGuy/7063f80097a9d67dc20c0d7fb45eeb62 to your computer and use it in GitHub Desktop.
Disable / Enable ZFS auto-snapshots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zfs-disable-snapshots() { | |
systemctl --user stop zsys-user-savestate.timer | |
systemctl --user disable zsys-user-savestate.timer | |
sudo mv /etc/apt/apt.conf.d/90_zsys_system_autosnapshot /etc/apt/apt.conf.d/90_zsys_system_autosnapshot.disabled | |
};export -f zfs-disable-snapshots | |
zfs-enable-snapshots() { | |
systemctl --user start zsys-user-savestate.timer | |
systemctl --user enable zsys-user-savestate.timer | |
sudo mv /etc/apt/apt.conf.d/90_zsys_system_autosnapshot.disabled /etc/apt/apt.conf.d/90_zsys_system_autosnapshot | |
};export -f zfs-enable-snapshots |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment