The way you typically do that is with a pacman/alpm hook. That way it will work no matter which updater you use.
If you use snapper, there is package called snap-pac which will add the hook for you. There is something similar for timeshift called timeshift-autosnap.