Package Details: pacman-boot-backup-hook 1.7-1

Git Clone URL: https://aur.archlinux.org/pacman-boot-backup-hook.git (read-only, click to copy)
Package Base: pacman-boot-backup-hook
Description: Pacman hook that creates a copy of the /boot directory prior and post to upgrades of the systemd package or when mkinitcpio is triggered.
Upstream URL: None
Keywords: backup boot-partition snapper
Licenses: MIT
Submitter: superhansel
Maintainer: superhansel
Last Packager: superhansel
Votes: 7
Popularity: 0.067601
First Submitted: 2017-12-31 00:33 (UTC)
Last Updated: 2023-10-21 21:00 (UTC)

Latest Comments

1 2 Next › Last »

psi-jack commented on 2024-11-11 20:55 (UTC) (edited on 2024-11-11 21:01 (UTC) by psi-jack)

Maybe also consider changing cp -aT /boot to just something that copies what's relevant, the kernels, and not all directories including efi and grub, to cp -d --preserve=all /boot/* "${BACKUP_PATH_DEST}"/ so it's only copying the kernels and microcode. Then one could set their BACKUP_PATH_DEST to /boot/.bootbackups, and keep it all in the same filesystem, in the case of /boot being it's own filesystem as an example.

psi-jack commented on 2024-11-11 20:25 (UTC)

One thing further I can possibly suggest, since the hook is already looking for initcpio, might as well also add usr/lib/dracut/* as well, for dracut users?

superhansel commented on 2024-02-16 23:05 (UTC) (edited on 2024-02-16 23:06 (UTC) by superhansel)

@streblo, the intention for me was as follows:

  • Have a pre-copy of /boot that can easily be restored in case that a kernel or microcode update goes south and the system is no longer bootable.
  • Have a post-copy in case I accidentally (or intentionally) changed a file in /boot and then I want to restore it to its latest state.

streblo commented on 2024-02-16 22:51 (UTC)

Thanks for the maintaining this.

The wiki doesn't really explain, what are the pre and post copies of /boot needed for? Presumably you're always going to be restoring the post copy?

BryanLiang commented on 2023-10-22 00:31 (UTC)

@superhansel It works for me.

superhansel commented on 2023-10-21 19:49 (UTC) (edited on 2023-10-21 21:01 (UTC) by superhansel)

Hi BryanLiang, of course - thanks for the suggestion. I've updated the packet accordingly. Feel free to leave some feedback if it works out for you!

BryanLiang commented on 2023-10-20 09:56 (UTC)

I checked the hooks, and they appear to be compatible exclusively with the Linux package. Could you please consider adding support for other kernels like linux-zen and linux-lts?

superhansel commented on 2023-07-12 08:13 (UTC)

Well spotted! Thank you, I've updated the package according to your feedback.

dreieck commented on 2023-07-12 00:28 (UTC)

Please add backup=('etc/pacman-boot-backup.conf') to the PKGBUILD, so that a user modified configueation file stays in place on package upgrade.
Thanks for maintaining!

dreieck commented on 2023-07-12 00:25 (UTC)

ncurses needs to be a make dependency, since tput is used in the $install script.

Regards!