Skip to content

Instantly share code, notes, and snippets.

@bertptrs
Created August 28, 2016 12:18
Show Gist options
  • Save bertptrs/09bdb99867ca9dc1d77657a02d7d8376 to your computer and use it in GitHub Desktop.
Save bertptrs/09bdb99867ca9dc1d77657a02d7d8376 to your computer and use it in GitHub Desktop.
Pacman hook to backup boot partition. Should be installed in /etc/pacman.d/hooks
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = File
Target = boot/*
[Action]
Description = Backing up boot partition
When = PreTransaction
Exec = /usr/bin/rsync -aurc /boot/ /mnt/backup/boot/
Depends = rsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment