Thanks! Everything restored.

On Fri, Sep 13, 2013 at 7:19 AM, Clemens Klein-Robbenhaar
<c.robbenh...@espresto.com> wrote:
>
>> Hi,
>>
>> See http://jira.xwiki.org/browse/XWIKI-8573
>>
>> There's a workaround mentioned.
>>
>
> For those who are less inclined to programming a more "manual" workaround 
> would to type in the URL to /wiki/bin/view/Main/AllDocs
> then click on the "Restore" link and get the document index back at least.
>  From there it is possible to filter on the "Deleted Documents" tab for the 
> pages from the "Main" space,
> and restore them one by one.
>
> However as soon as you see how many pages you have to restore you might want 
> to switch to the "programmatic" method ;)
>
> If you do not like to list the names pf all pages to restore in the first 
> line of the script, (which would make the approach "semi-manual" actually),
> you can replace the first line:
>
>  def alldocs = ["wiki1:space1.page1", "wiki2:space2.page2"]
>
> with:
>
>  def selectSql = "select ddoc.fullName from XWikiDeletedDocument as ddoc 
> where ddoc.fullName like 'Main.%'";
>  def alldocs = xwiki.search(selectSql)
>
> At least this worked for me, when I tested this a moment ago with some 5.1 
> instance.
>
> Cheers,
> Clemens
>
>> Thanks
>> -Vincent
>>
>> PS: We really need to fix this… See http://jira.xwiki.org/browse/XWIKI-8320
>>
>>
>> On Sep 13, 2013, at 12:50 PM, Todd O'Bryan <toddobr...@gmail.com> wrote:
>>
>>> I'm a high school computer science teacher who's a recent immigrant
>>> from MoinMoin to XWiki.
>>>
>>> The subject says it all. I deleted my Main space accidentally and
>>> can't figure out how to restore everything. I've got the Main.WebHome
>>> page back, but I have three errors:
>>>
>>> Unknown macro: spaces
>>> Unknown macro: messageSender
>>> Unknown macro: activity
>>>
>>> How do I go about getting rid of these errors and restoring the
>>> content on the WebHome page?
>>>
>>> Thanks!
>>> Todd
>> _______________________________________________
>> 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
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to