Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-04-12 Thread Karol Babioch
Hi, Am 13.03.2016 um 04:07 schrieb Wes Barnett: > Someone mentioned last month about using pacman hooks for btrfs snapper > snapshots like YaST does with openSUSE (cf. > https://lists.archlinux.org/pipermai > l/arch-general/2016-February/040589.html). yeah, that was me ;). > Here's a little pa

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-03-12 Thread Wes Barnett
Someone mentioned last month about using pacman hooks for btrfs snapper snapshots like YaST does with openSUSE (cf. https://lists.archlinux.org/pipermai l/arch-general/2016-February/040589.html).  Here's a little package I put together to do this: https://aur.archlinux.org/pac kages/snap-pac/ Jus

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Elmar Stellnberger
Am 2016-02-02 um 14:53 schrieb Karol Babioch: Hi, Am 02.02.2016 um 14:15 schrieb Elmar Stellnberger: However you may implement this feature please make sure that it takes care of the availabel disk space! Most people do only have limited space on their root partition and by making numerous snap

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Karol Babioch
Hi, Am 02.02.2016 um 14:15 schrieb Elmar Stellnberger: > However you may implement this feature please make sure that it takes > care of the availabel disk space! Most people do only have limited space > on their root partition and by making numerous snapshots your hard drive > will be clobbered s

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Damjan Georgievski
On 2 February 2016 at 10:40, Damjan Georgievski wrote: >> https://github.com/andrewgregory/pachooks > > do hook files need to end in .hook ? > I couldn't find it mentioned in man alpm-hooks or pacman Also, `Exec =` requires a full path to the executable -- damjan

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Elmar Stellnberger
However you may implement this feature please make sure that it takes care of the availabel disk space! Most people do only have limited space on their root partition and by making numerous snapshots your hard drive will be clobbered soon. Besides this the feature should stop automatically or

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread ProgAndy
Am 02.02.2016 um 10:40 schrieb Damjan Georgievski: https://github.com/andrewgregory/pachooks do hook files need to end in .hook ? I couldn't find it mentioned in man alpm-hooks or pacman Yes, a hook ends in .hook, that should be mentioned somewhere. I had to check the sourcecode: https://pro

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Damjan Georgievski
> https://github.com/andrewgregory/pachooks do hook files need to end in .hook ? I couldn't find it mentioned in man alpm-hooks or pacman -- damjan

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Karol Babioch
Hi, Am 02.02.2016 um 10:16 schrieb Karol Babioch: > When exactly and how often are the PreTransaction and > PostTransaction actions executed? Are they executed for each and every > package, or for each invocation of pacman itself, i.e. once per upgrade > (of multiple packages)? after having a pla

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Karol Babioch
Hi, Am 02.02.2016 um 01:32 schrieb Andrew Gregory: > https://github.com/andrewgregory/pachooks thank you very much. This is basically exactly what I was looking for and I will have a play with it. By the way: When exactly and how often are the PreTransaction and PostTransaction actions executed?

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-02 Thread Karol Babioch
Hi, Am 02.02.2016 um 04:30 schrieb Leonid Isaev: > Thanks. But /boot can not be snapshot with this, right? technically you can snapshot whatever you want. snapper can also (kind of) work with LVM and ext4, so btrfs is not an absolute requirement. Bootloaders can boot from btrfs. The only danger

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-01 Thread Leonid Isaev
Hi, On Tue, Feb 02, 2016 at 12:16:53AM +0100, Karol Babioch wrote: > > What is the goal here? > > To have snapshots before and after pacman did any changes to the > filesystem (i.e. upgraded packages), so one can easily rollback to a > known good state in case of an error, and/or look at the diff

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-01 Thread Karol Babioch
Hi, Am 01.02.2016 um 23:30 schrieb Leonid Isaev: > On Mon, Feb 01, 2016 at 10:21:04PM +0100, Karol Babioch wrote: >> Hi all, >> >> now with hooks newly introduced to pacman, are there already some useful >> btrfs and/or snapper hooks available? At least a quick look-around in >> the forums and wit

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-01 Thread Leonid Isaev
On Mon, Feb 01, 2016 at 10:21:04PM +0100, Karol Babioch wrote: > Hi all, > > now with hooks newly introduced to pacman, are there already some useful > btrfs and/or snapper hooks available? At least a quick look-around in > the forums and with Google hasn't revealed anything yet. What is the goal

Re: [arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-01 Thread Andrew Gregory
On 02/02/16 at 12:16am, Karol Babioch wrote: > Hi, > > Am 01.02.2016 um 23:30 schrieb Leonid Isaev: > > On Mon, Feb 01, 2016 at 10:21:04PM +0100, Karol Babioch wrote: > >> Hi all, > >> > >> now with hooks newly introduced to pacman, are there already some useful > >> btrfs and/or snapper hooks ava

[arch-general] btrfs/snapper hook for pacman 5.0?

2016-02-01 Thread Karol Babioch
Hi all, now with hooks newly introduced to pacman, are there already some useful btrfs and/or snapper hooks available? At least a quick look-around in the forums and with Google hasn't revealed anything yet. Maybe I'm getting something wrong here, but in my understanding it should be doable and p