Yes but in this case I must  use groovy code. I will work on this solution.

Are they a way to launch a jobs scheduled with cron ? (my server center prefer 
that than use quartz  AND my xwiki scheduler don't work)


________________________________
 De : "vinc...@massol.net" <vinc...@massol.net>
À : XWiki Users <users@xwiki.org> 
Envoyé le : Mercredi 9 avril 2014 11h53
Objet : Re: [xwiki-users] How do you reset sandbox?
 

 



On 9 Apr 2014 at 11:45:01, Pascal BASTIEN 
(pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:

> Ok but I wanted reset only my space Sandbox everyday. So I suppose I must use 
> an update SQL request then (and delete xx/data_xwiki/storage/xwiki/Sandbox/) .

You can easily do that with an XWiki Scheduler job and use scripting to copy 
“template” pages.

Thanks
-Vincent

> PS: But I think your idea to create a full playground wiki is a goord one 
> (search engine is not polluted by sandbox space)
> thank you
>  
>  
>  
>  
> ________________________________
> De : "vinc...@massol.net"  
> À : XWiki Users  
> Envoyé le : Mercredi 9 avril 2014 11h17
> Objet : Re: [xwiki-users] How do you reset sandbox?
>  
>  
> Hi,
>  
> If you’re referring to the sandbox wiki, we do this once to save the mysql 
> data:
>  
> mysqldump -uxwiki -p --add-drop-database playground > 
> /root/playground/playground.sql

>  
> And then every
> day with a os-level cron job:
> /usr/bin/mysql playground < /root/playground/playground.sql
>  
> Thanks
> -Vincent
>  
>  
> On 9 Apr 2014 at 11:01:45, Pascal BASTIEN 
> (pbasnews-xw...@yahoo.fr(mailto:pbasnews-xw...@yahoo.fr)) wrote:
>  
> > Hello,
> >  
> > How do you reinit sandbox?
> > With snippet and scheduler or bash + cron to launch a SQL code on database?
> >  
> > Thxs;
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to