[Gluster-users] How to retrieve gluster snap volume name

Alex Crow acrow at integrafin.co.uk
Thu Sep 3 15:11:15 UTC 2015


How about just:

sudo gluster snapshot info | grep "Snap\ Volume\ Name" | sed -e 's/^S.*://g'

??

Alex


On 03/09/15 16:06, Merlin Morgenstern wrote:
> Is there a way to retrieve the snap volume name from gluster?
>
> $ sudo gluster snapshot info returns all kinds of info:
>
> Snapshot                  : snap1
> Snap UUID                 : 2788e974-514b-4337-b41a-54b9cb5b0699
> Created                   : 2015-09-02 14:03:59
> Snap Volumes:
>
> Snap Volume Name          : 2d828e6282964e0e89616b297130aa1b
> Origin Volume name        : vol1
> Snaps taken for vol1      : 2
> Snaps available for vol1  : 254
> Status                    : Started
>
> I would need a command for only the Snap Volume Name in order to 
> automate a backup process.
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users

-- 
This message is intended only for the addressee and may contain
confidential information. Unless you are that person, you may not
disclose its contents or use it in any way and are requested to delete
the message along with any attachments and notify us immediately.
"Transact" is operated by Integrated Financial Arrangements plc. 29
Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608
5300. (Registered office: as above; Registered in England and Wales
under number: 3727592). Authorised and regulated by the Financial
Conduct Authority (entered on the Financial Services Register; no. 190856).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150903/f432ed0b/attachment.html>


More information about the Gluster-users mailing list