Interesting hack :-)
Should work but the regex seems not fitting:
Returns:
Snap Volume Name : 2d828e6282964e0e89616b297130aa1b
2015-09-03 17:11 GMT+02:00 Alex Crow <acrow@xxxxxxxxxxxxxxxx>:
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 : snap1Snap UUID : 2788e974-514b-4337-b41a-54b9cb5b0699Created : 2015-09-02 14:03:59Snap Volumes:
Snap Volume Name : 2d828e6282964e0e89616b297130aa1bOrigin Volume name : vol1Snaps taken for vol1 : 2Snaps available for vol1 : 254Status : 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@xxxxxxxxxxx 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).
_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users
_______________________________________________ Gluster-users mailing list Gluster-users@xxxxxxxxxxx http://www.gluster.org/mailman/listinfo/gluster-users