Created
August 28, 2016 12:18
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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