Backup of mavenbook.xwiki.org?
Hi there, Is there a backup of the xwiki web sites opened on xwiki.com done every day? Even if there, is there a possibility to do a full extract so that I could store it on my local machine and then reimport it later on if something goes bad? Thanks -Vincent _____________________________________________________________________________ D�couvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vid�os ! Cr�ez votre Yahoo! Mail sur http://fr.mail.yahoo.com
On 5/26/05, Vincent Massol <[email protected]> wrote:
Hi there,
Is there a backup of the xwiki web sites opened on xwiki.com done every day?
Even if there, is there a possibility to do a full extract so that I could store it on my local machine and then reimport it later on if something goes bad?
hi Vincent, I've done a script to do that. ----------------------------8<--------------------------------------------------- #set($export = $request.get("export")) #if ($export == "1") #set($ToExport = $request.getParameterValues("ToExport")) $response.setContentType("application/zip") $context.setFinished(true) #set($zos = $xwiki.xWiki.getZipOutputStream($context.context)) #foreach ($itemexp in $ToExport) #set($bentrydoc = $xwiki.getDocument($itemexp)) $bentrydoc.document.addToZip($zos,$context.context) #end $zos.finish() $zos.flush() #else #set($dateFormat = "dd MMM yyyy ? HH:mm") #set($diff = $request.get("diff")) <form method="POST" action="ExportApp?export=1"> #set ($sql = "where doc.name <> 'WhatsNew' order by doc.date desc") #set ($list = $xwiki.searchDocuments($sql , 0 , 0)) #foreach ($item in $list) #if ($xwiki.hasAccessLevel("view", $context.user, "${context.database}:${item}")) #set($bentrydoc = $xwiki.getDocument($item)) #set($author = $bentrydoc.author) #if($author=="") #set($author="XWiki.WikiWiki") #end #set($i = $author.indexOf(".")+1) * <input type="checkbox" name="ToExport" value="${bentrydoc.web}.$bentrydoc.name" />[$bentrydoc.name>${bentrydoc.web}.$bentrydoc.name] par [${author.substring($i)}>$author] le $xwiki.formatDate($bentrydoc.date, $dateFormat) #end #end <input type="submit" name="submitted" value="Valider"> </form> #end ----------------------------------->8------------------------------------------ For the import, you need to have the programming right in xwiki.com or you can wait the next version to use my import plugin. I will commit the code tomorrow. Jérémi -- http://www.sport42.net - http://fr.runnerslifestyle.com Développeur http://www.xwiki.org Tel : 06.84.50.33.49 skype: jeremi23
participants (2)
-
jeremi joslin -
Vincent Massol