Automatic BTRFS snapshots with APT Hooks @linuxdabbler
Automatic BTRFS snapshots with APT Hooks  @linuxdabbler
Uploaded February 2023 | Updated September 2026, 3 hours ago
Of course, snapshots can be made with a CRON job, but I wanted a better way of snapshotting my btrfs file system before every update. This is a safety net for if something goes wrong.

Contents of 80snapshotconf
DPkg::Pre-Invoke { "$(which snapctl) root "; };

change the called script as you see fit.

It is also on my gitlab page, link below.

Intro Music from bensound.com

GitLab
gitlab.com/linuxdabbler

Youtube
youtube.com/c/linuxdabbler

Twitter, MeWe, Mastodon.social
@linuxdabbler

Software I use:
Librewolf -- Web Browser
Firefox -- Web Browser
OBS Studio -- Recording Software
Kdenlive -- Video Editor
Audacity -- Audio Editor
Vim/Neovim -- Text Editor
Automatic BTRFS snapshots with APT HooksLets Make Ubuntu Great!Layout Customization in SpectrWMVirtualization on DebianInstall Debian/Devuan with Encrypted BTRFS subvolumes!Qtile on Debian First LookMore dwm  and slstatus customizationHow to get the XFCE panel working in i3Creating bootable USB sticks with dd.... Now with progress bars!!!How to install Arch Linux and clone a VMArcoLinux install in Virtualbox... Its pretty .. and awesome.How to upgrade from Debian Buster (stable) to Bullseye (testing)
linux dabbler |

Automatic BTRFS snapshots with APT Hooks

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER