[xwiki-users] How do you reset sandbox?
Hello, How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database? Thxs;
Hi, If you’re referring to the sandbox wiki, we do this once to save the mysql data: mysqldump -uxwiki -p<pass here> --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 ([email protected](mailto:[email protected])) wrote:
Hello,
How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database?
Thxs;
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/) . 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 : "[email protected]" <[email protected]> À : XWiki Users <[email protected]> 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<pass here> --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 ([email protected](mailto:[email protected])) 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
On 9 Apr 2014 at 11:45:01, Pascal BASTIEN ([email protected](mailto:[email protected])) 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 : "[email protected]" À : 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 ([email protected](mailto:[email protected])) wrote:
Hello,
How do you reinit sandbox? With snippet and scheduler or bash + cron to launch a SQL code on database?
Thxs;
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 : "[email protected]" <[email protected]> À : XWiki Users <[email protected]> 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 ([email protected](mailto:[email protected])) 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 : "[email protected]" À : 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 ([email protected](mailto:[email protected])) 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Pascal BASTIEN -
vincent@massol.net