Thank you Sergiu. You have been most helpfull. On Sun, Nov 7, 2010 at 6:33 PM, Sergiu Dumitriu <[email protected]> wrote:
On 11/07/2010 07:06 PM, Ziggy wrote:
Hi Sergiu,
I have not made any changes via the filesystems. All changes i have made are via the xwiki itself. As an example, i have edited and updated the "shortcuts" and "quick links" panels.
Do you mean that any change that is done via the xwiki system is stored in the database and not on teh filesystem? Does this mean that exporting and re-importing the database would restore the changes i made to the panels as well?
Yes, and yes.
On Sun, Nov 7, 2010 at 5:59 PM, Sergiu Dumitriu<[email protected]>
wrote:
On 11/07/2010 06:47 PM, Ziggy wrote:
What happens to any macros or stylesheets that i made changes to? Are these not stored as static files in the $WEBAPPS/xwiki folder?
Are there any files that are stored in the webapps/xwiki folder that
need
to
be backed up as well? Or is backing the database sufficient for a full restore?
If you made changes to files on the filesystem, then you must take care of manually migrating those changes into the new version. This is why it is not recommended to touch the filesystem files, but to override them inside the wiki. Most templates can be overridden by attaching the modified versions to the skin document (XWiki.DefaultSkin by default).
On Sun, Nov 7, 2010 at 5:31 PM, Sergiu Dumitriu<[email protected]>
wrote:
On 11/07/2010 06:05 PM, Ziggy wrote:
Hi Sergiu,
I am trying to upgrade from 2.4 to 2.5.1
Usually i export my workspace as a xar and then recreate everything
by
refreshing the mysql and tomcat installation. I do also get an export dump of the database for backup.
I use the xar file to re-import the workspace back after re-installing tomcat and mysql. This gives me a fresh install.
This time it is failing as it has probably become very large. I know that i can upgrade by just replacing the $TOMCAT/webapps/xwiki folder with the new war file but i am trying to get a clean installation and the xar export acts as a backup of the tomcat resources (jsps, css, javascript etc) as well.
If i try the following will it it work?
- Export the database using mysqldump - Re-install mysql - Re-install Tomcat - Re-import the database data - Re-install the 2.5 xwiki war file
Using the above steps, would i be backing up everything in the wiki? This is where i get slightly confused. When i export as a xar file, what exactly am i exporting? is it just the contents of the database or does it include any jsp changes, css, javascript files etc.
Only the contents of the database, this is why it's more efficient to just do the transfer at the database level. XAR export+import is useful when migrating between different systems.
Thanks
On Sun, Nov 7, 2010 at 4:50 PM, Sergiu Dumitriu<[email protected]> wrote:
> On 11/07/2010 03:54 PM, Ziggy wrote: >> Hi guys, >> >> I am trying to export my xwiki workspace so but every time i try it i get >> the following error >> >> java.lang.OutOfMemoryError: Java heap space >> at java.util.Arrays.copyOf(Arrays.java:2882) >> at >> >
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
>> at >> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390) >> at java.lang.StringBuffer.append(StringBuffer.java:224) >> at org.suigeneris.jrcs.rcs.impl.Node.toText(Node.java:719) >> at org.suigeneris.jrcs.rcs.Archive.toString(Archive.java:914) >> >> >> I know this is an error where the JVM has not enough memory. My JVM > memory >> settings are set as follows >> >> set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Duser.timezone=GMT >> -Xmx1024m -XX:MaxPermSize=1024m" >> >> Everytime i try to increase it to anything above the above values Tomact >> does not startup. Any clues as to how i can fix this? >> >> I am running xwiki on the following environment >> >> Tomcat 6.0.29 >> Xwiki 2.4.3 >> Mysql 5.1 >> Windows Xp > > What do you want to do with the contents of the wiki afterward? If you > want to migrate it to another machine, inside another mysql database, > then it would be simpler to dump and import the database data directly, > using mysqldump or something similar. > > You should only increase the -Xmx parameter, since this is the heap > memory, while MaxPermSize is used only for storing classes. Try > something like: > -Xmx2048m -XX:MaxPermSize=128m
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users