Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-14 Thread Discussion list for OpenIndiana
On 14 May 2014 14:24, Discussion list for OpenIndiana < openindiana-discuss@openindiana.org> wrote: > There is nothing wrong with using "tail -1" as Bob said. If the question > you're trying to answer, is "what's the latest snapshot of the specified > filesystem" that's just fine ... And in f

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-14 Thread Discussion list for OpenIndiana
On Wed, 14 May 2014, Discussion list for OpenIndiana wrote: From: Discussion list for OpenIndiana [mailto:openindiana- disc...@openindiana.org] It seems that someone should bring up this issue on the zfs list. All of the proposed solutions have involved 'tail -1'. This is a non-scalable solut

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-14 Thread Discussion list for OpenIndiana
> > > It seems that someone should bring up this issue on the zfs list. All > > > of the proposed solutions have involved 'tail -1'. This is a > > > non-scalable solution which does not work efficiently for any number > > > of snapshots. > > > > What's wrong with it? > > > > Works for me, and alt

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-14 Thread Discussion list for OpenIndiana
On 14 May 2014 12:27, Discussion list for OpenIndiana < openindiana-discuss@openindiana.org> wrote: > > From: Discussion list for OpenIndiana [mailto:openindiana- > > disc...@openindiana.org] > > > > It seems that someone should bring up this issue on the zfs list. All > > of the proposed solutio

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-14 Thread Discussion list for OpenIndiana
> From: Discussion list for OpenIndiana [mailto:openindiana- > disc...@openindiana.org] > > It seems that someone should bring up this issue on the zfs list. All > of the proposed solutions have involved 'tail -1'. This is a > non-scalable solution which does not work efficiently for any number

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-13 Thread Discussion list for OpenIndiana
It seems that someone should bring up this issue on the zfs list. All of the proposed solutions have involved 'tail -1'. This is a non-scalable solution which does not work efficiently for any number of snapshots. Since it is such a common requirement, zfs should provide an efficient way to

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-13 Thread Discussion list for OpenIndiana
> From: Discussion list for OpenIndiana [mailto:openindiana- > disc...@openindiana.org] > > On our backup servers I have a "backup-check" script that checks to see > what the last snapshot for a particular volume is (and compares it with the > current date) This is how I do it: By doing "zfs list

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-12 Thread Discussion list for OpenIndiana
interested in. > > John > > -Original Message- > From: Discussion list for OpenIndiana [mailto: > openindiana-discuss@openindiana.org] > Sent: 12 May 2014 12:20 > To: Discussion list for OpenIndiana > Subject: [OpenIndiana-discuss] Finding the "last" snapshot f

Re: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-12 Thread Discussion list for OpenIndiana
sion list for OpenIndiana Subject: [OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume On our backup servers I have a "backup-check" script that checks to see what the last snapshot for a particular volume is (and compares it with the current date) df -F zfs -h |grep $my

[OpenIndiana-discuss] Finding the "last" snapshot for a zfs volume

2014-05-12 Thread Discussion list for OpenIndiana
On our backup servers I have a "backup-check" script that checks to see what the last snapshot for a particular volume is (and compares it with the current date) df -F zfs -h |grep $mypool | nawk '{system("zfs list -t snapshot -r "$1" \| tail -1")}' | egrep -v "$yesterday|no datasets" okay, it's