Re: [one-users] Fwd: Re: Images backup

2014-10-14 Thread Valentin Bud
Hello Bruno,

I think Carlos was referring to the xpath.rb script from inside OpenNebula
[1].

And you can use that script in a bash program to achieve what you desire.
You can find an example at [2].

Python is great and it's easy to hit the XML-RPC API to achieve pretty much
everything you want :).

[1]:
https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/xpath.rb
[2]:
https://github.com/OpenNebula/one/blob/master/src/datastore_mad/remotes/fs/cp

Best,
Valentin

On Tue, Oct 14, 2014 at 10:03 AM, Bruno Grandjean <
bruno.grandj...@mife90.org> wrote:

>
>  Hello Carlos
>
> No right to install the xpath package
>
> I am developing a python script ..
>
> Thanks you for giving to me the light
>
> best regards
>
> bruno
>
> Le 13/10/2014 15:06, Carlos Martín Sánchez a écrit :
>
> Hi,
>
>  On Thu, Oct 9, 2014 at 11:35 AM, Bruno Grandjean <
> bruno.grandj...@mife90.org> wrote:
>
>>  Hi Carlos
>>
>> Thanks a lot for replying to me so quickly
>>
>> In fact I would like to cron the backup with a simple script:
>>
>> # create hot snap from the running VM
>> $ onevm snapshot-create 68
>>
>> My initial image is already persistent
>>
>> But how can I manage and especially delete the succesive snapshots?
>>
>> For instance I would like to remove the snapshots older than 1 week
>>
>> Is that possible to do that?
>>
>> thanks in advance,
>>
>> Bruno
>>
>
>  Each snapshot has a timestamp, so it's easy to find them in your cron
> script with xpath.
>
>  Regards
>
> --
> Carlos Martín, MSc
> Project Engineer
> OpenNebula - Flexible Enterprise Cloud Made Simple
> www.OpenNebula.org  | cmar...@opennebula.org
>  | @OpenNebula 
>
>
>
>
>
> ___
> Users mailing list
> Users@lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org


[one-users] Fwd: Re: Images backup

2014-10-14 Thread Bruno Grandjean


Hello Carlos

No right to install the xpath package

I am developing a python script ..

Thanks you for giving to me the light

best regards

bruno

Le 13/10/2014 15:06, Carlos Martín Sánchez a écrit :

Hi,

On Thu, Oct 9, 2014 at 11:35 AM, Bruno Grandjean 
mailto:bruno.grandj...@mife90.org>> wrote:


Hi Carlos

Thanks a lot for replying to me so quickly

In fact I would like to cron the backup with a simple script:

# create hot snap from the running VM
$ onevm snapshot-create 68

My initial image is already persistent

But how can I manage and especially delete the succesive snapshots?

For instance I would like to remove the snapshots older than 1 week

Is that possible to do that?

thanks in advance,

Bruno


Each snapshot has a timestamp, so it's easy to find them in your cron 
script with xpath.


Regards

--
Carlos Martín, MSc
Project Engineer
OpenNebula - Flexible Enterprise Cloud Made Simple
www.OpenNebula.org  | 
cmar...@opennebula.org  | @OpenNebula 







___
Users mailing list
Users@lists.opennebula.org
http://lists.opennebula.org/listinfo.cgi/users-opennebula.org