<div dir="ltr">Hello Bruno,<div><br></div><div>I think Carlos was referring to the xpath.rb script from inside OpenNebula [1].</div><div><br></div><div>And you can use that script in a bash program to achieve what you desire.</div><div>You can find an example at [2].</div><div><br></div><div>Python is great and it's easy to hit the XML-RPC API to achieve pretty much</div><div>everything you want :).</div><div><br></div><div>[1]: <a href="https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/xpath.rb">https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/xpath.rb</a></div><div>[2]: <a href="https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/fs/cp">https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/fs/cp</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div><div class="gmail_extra">Valentin</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 14, 2014 at 10:03 AM, Bruno Grandjean <span dir="ltr"><<a href="mailto:bruno.grandjean@mife90.org" target="_blank">bruno.grandjean@mife90.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <br>
    <div>
      
      Hello Carlos<br>
      <br>
      No right to install the xpath package<br>
      <br>
      I am developing a python script ..<br>
      <br>
      Thanks you for giving to me the light<br>
      <br>
      best regards<br>
      <br>
      bruno<br>
      <br>
      <div>Le 13/10/2014 15:06, Carlos Martín
        Sánchez a écrit :<br>
      </div><div><div class="h5">
      <blockquote type="cite">
        <div dir="ltr">Hi,
          <div><br>
          </div>
          <div class="gmail_extra">
            <div class="gmail_quote">On Thu, Oct 9, 2014 at 11:35 AM,
              Bruno Grandjean <span dir="ltr"><<a href="mailto:bruno.grandjean@mife90.org" target="_blank">bruno.grandjean@mife90.org</a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                <div bgcolor="#FFFFFF" text="#000000"> Hi Carlos<br>
                  <br>
                  Thanks a lot for replying to me so quickly<br>
                  <br>
                  In fact I would like to cron the backup with a simple
                  script:<br>
                  <br>
                  # create hot snap from the running VM <br>
                  $ onevm snapshot-create 68<br>
                  <br>
                  My initial image is already persistent<br>
                  <br>
                  But how can I manage and especially delete the
                  succesive snapshots?<br>
                  <br>
                  For instance I would like to remove the snapshots
                  older than 1 week<br>
                  <br>
                  Is that possible to do that?<br>
                  <br>
                  thanks in advance,<br>
                  <br>
                  Bruno<br>
                </div>
              </blockquote>
              <div><br>
              </div>
              <div>Each snapshot has a timestamp, so it's easy to find
                them in your cron script with xpath.</div>
              <div><br>
              </div>
              <div>Regards</div>
              <div>
                <div dir="ltr"><br>
                  --<br>
                  <div>Carlos Martín, MSc<br>
                    Project Engineer</div>
                  <div>OpenNebula - Flexible Enterprise Cloud Made
                    Simple<br>
                    <div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.opennebula.org/" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"></span></div>
                  </div>
                </div>
              </div>
              <div><br>
              </div>
            </div>
          </div>
        </div>
      </blockquote>
      <br>
      <br>
    </div></div></div>
    <br>
  </div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div></div>