Timeshift-autosnap not working with yay update

timeshift-autosnap not working with yay update, but only with yay AUR will also be updated with other packages too.

(1/5) upgrading linux                                                                                [------------------------------------------------------------] 100%
(2/5) upgrading linux-headers                                                                        [------------------------------------------------------------] 100%
(3/5) upgrading linux-lts54                                                                          [------------------------------------------------------------] 100%
(4/5) upgrading linux-lts54-headers                                                                  [------------------------------------------------------------] 100%
(5/5) upgrading r8168                                                                                [------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.15.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.15.7-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts54.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts54 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts54.img
==> Starting build: 5.4.164-1-lts54
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts54.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts54.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts54 -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts54-fallback.img -S autodetect
==> Starting build: 5.4.164-1-lts54
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts54-fallback.img
==> Image generation successful
(4/6) Check if user should be informed about rebooting after certain system package upgrades.
(5/6) Cleaning Pacman Cache.... ;)
==> no candidate packages found for pruning
(6/6) Checking which packages need to be rebuilt
:: Searching databases for updates...
:: Searching AUR for updates...
 -> Flagged Out Of Date AUR Packages:  brave-bin
 there is nothing to do

I’ve read your post multiple times now, and I do not understand what the problem is that you are referring to. Could you elaborate?

I recently read a post that it is efficetive to use yay -Syu for updating system rather than pacman -Syu, since pacman updates only packages from official repository whereas yay updates both official and AUR package. That’s why I used yay to update my system but timeshift-autosnap is not taking any snapshots on updating my system with yay.

I want timeshift to take snapshots when updating with yay as well.

Timeshift does make snapshots on a scheduled time, it has got nothing to do with Arch or AUR updates. It does take a snapshot from the system, including all installed updates at the time of making it.

If you want to have Timeshift create a snapshot of the system with each update, then you have to set it to hourly.

EDIT: I understand the issue now, but why do you want it to be updated at the same time you update the system?

1 Like

He wants to use timeshift-autosnap to trigger a back up prior to executing the update. This way if something goes wrong he can roll back. I believe this only works for BTRFS file systems and also requires grub-btrfs so you can pick a snapshot from grub to boot into.

1 Like

All you need to do is type yay and enter.

1 Like

Ah, I understand now, thanks. I do the exact same thing, updating using yay -Syu, and timeshift-autosnap does make snapshots for me whenever I update the system. Strange.

How does your /etc/timeshift-autosnap.conf look?

1 Like

This is the wrong part of the output. timeshift-autosnap is a pre-transaction hook. It doesn’t matter if you use yay or pacman. Can you show us the entire pacman output?

1 Like

I have disabled timeshifts scheduled snapshots and then an update came and I updated with yay the timeshift worked

Right, you should see it working if you look at the output from the pre-transaction hooks.

8 posts were merged into an existing topic: Timeshift and timeshift-autosnapd not allowing updates