Skip to content

Instantly share code, notes, and snippets.

@ThinGuy
Created June 24, 2022 22:56
Show Gist options
  • Select an option

  • Save ThinGuy/7063f80097a9d67dc20c0d7fb45eeb62 to your computer and use it in GitHub Desktop.

Select an option

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