initial commit

This commit is contained in:
James Barnett 2016-03-11 07:58:56 -06:00
parent 8ea78e1982
commit 07f3c0c00c
4 changed files with 32 additions and 0 deletions

5
snapper-pac-post Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
SNAPPERPACPRE=$(cat /.snapperpacpre)
snapper --config root create --type post --pre-number $SNAPPERPACPRE --description "pacman posttransaction"
rm /.snapperpacpre

3
snapper-pac-pre Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
snapper --config root create --type pre --print-number --description "pacman pretransaction" > /.snapperpacpre

12
snapper-post.hook Normal file
View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Snapper snapshot after a transaction
Depends = snapper
When = PostTransaction
Exec = /usr/bin/snapper-pac-post

12
snapper-pre.hook Normal file
View file

@ -0,0 +1,12 @@
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Snapper snapshot before a transaction
Depends = snapper
When = PreTransaction
Exec = /usr/bin/snapper-pac-pre