initial commit
This commit is contained in:
parent
8ea78e1982
commit
07f3c0c00c
4 changed files with 32 additions and 0 deletions
5
snapper-pac-post
Executable file
5
snapper-pac-post
Executable 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
3
snapper-pac-pre
Executable 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
12
snapper-post.hook
Normal 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
12
snapper-pre.hook
Normal 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
|
||||
Loading…
Add table
Reference in a new issue