Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Created June 24, 2022 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThinGuy/7063f80097a9d67dc20c0d7fb45eeb62 to your computer and use it in GitHub Desktop.
Save ThinGuy/7063f80097a9d67dc20c0d7fb45eeb62 to your computer and use it in GitHub Desktop.
Disable / Enable ZFS auto-snapshots
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