diff options
| -rw-r--r-- | pacman_bootbackup | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pacman_bootbackup b/pacman_bootbackup new file mode 100644 index 0000000..48d37db --- /dev/null +++ b/pacman_bootbackup @@ -0,0 +1,14 @@ +# /etc/pacman.d/hooks/95-bootbackup.hook +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Path +Target = usr/lib/modules/*/vmlinuz + +[Action] +Depends = rsync +Description = Backing up /boot... +When = PostTransaction +Exec = /usr/bin/rsync -a --delete /boot /.bootbackup + |
