<div dir="ltr">Interesting hack :-)<div><br></div><div>Should work but the regex seems not fitting:</div><div>Returns: </div><div>







<p class=""><span class=""><span class="">        </span>Snap Volume Name          : 2d828e6282964e0e89616b297130aa1b</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-03 17:11 GMT+02:00 Alex Crow <span dir="ltr">&lt;<a href="mailto:acrow@integrafin.co.uk" target="_blank">acrow@integrafin.co.uk</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    How about just:<br>
    <br>
    sudo gluster snapshot info | grep &quot;Snap\ Volume\ Name&quot; | sed -e
    &#39;s/^S.*://g&#39;<br>
    <br>
    ??<br>
    <br>
    Alex<div><div class="h5"><br>
    <br>
    <br>
    <div>On 03/09/15 16:06, Merlin Morgenstern
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Is there a way to retrieve the snap volume name
        from gluster?
        <div><br>
        </div>
        <div>
          <div>$ sudo gluster snapshot info returns all kinds of info:</div>
          <div><br>
          </div>
          <div>Snapshot                  : snap1</div>
          <div>Snap UUID                 :
            2788e974-514b-4337-b41a-54b9cb5b0699</div>
          <div>Created                   : 2015-09-02 14:03:59</div>
          <div>Snap Volumes:</div>
          <div><br>
          </div>
          <div>Snap Volume Name          :
            2d828e6282964e0e89616b297130aa1b</div>
          <div>Origin Volume name        : vol1</div>
          <div>Snaps taken for vol1      : 2</div>
          <div>Snaps available for vol1  : 254</div>
          <div>Status                    : Started</div>
        </div>
        <div><br>
        </div>
        <div>I would need a command for only the Snap Volume Name in
          order to automate a backup process.</div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Gluster-users mailing list
<a href="mailto:Gluster-users@gluster.org" target="_blank">Gluster-users@gluster.org</a>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
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.
&quot;Transact&quot; is operated by Integrated Financial Arrangements plc. 29
Clement&#39;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).
</pre>
  </font></span></div>

<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>