<div dir="ltr"><div><div>Have you tried the &quot;--mode=script&quot; option in Gluster?<br><br></div>e.g.<br><br></div># gluster --mode=script snapshot delete snap1<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 8, 2016 at 10:01 PM, Alastair Neil <span dir="ltr">&lt;<a href="mailto:ajneil.tech@gmail.com" target="_blank">ajneil.tech@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am crafting a script (well actually I am modifying gcron.py) to retain a configurable number of Hourly, Daily,Weekly and Monthly snapshots.  One issue is that gluster snapshot delete &quot;snapname&quot; does not seem to have a command line switch (like &quot;-y&quot; in yum) to attempt the operation non-interactively.  Is there another way of performing this that is more friendly to non-interactive use?  From the shell I can pipe &quot;yes&quot;  to the command but my python fu is weak so I thought I&#39;d ask if there was a simpler way.<div><br></div><div>Thanks, Alastair</div><div><br><div><br></div><div><br></div></div></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>