wesbarnett / snap-pac

Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST
GNU General Public License v2.0
180 stars 14 forks source link

snapshots only for updates #57

Open ansarimohammed422 opened 3 weeks ago

ansarimohammed422 commented 3 weeks ago

is i have installed this script and it set so that snapper is creating snapshots after every transactions of pacman like it is creating for installation also and removal also

but i want it to take snapshots only when i update thhrough pacman -Syu and not take snapshots whan i installl or remove something

so how can i achieve that

bkmo commented 2 weeks ago

You need to edit /usr/share/libalpm/hooks/05-snap-pac-pre.hook and zz-snap-pac-post.hook and remove Operation = Install and Operation = Remove from the triggers section.