[daisy] help;backup tool: unable to restore

Karel Vervaeke karel at outerthought.org
Wed Apr 9 08:55:47 CEST 2008


Does your Daisy instance have lots of (binary?) data? What is the size
of the zip files?
OutOfMemory errors can usually be fixed by giving the java process more
memory.  This can be done like this:

In $DAISY_HOME/bin/daisy-backup-tool the last line looks like this:

"$JAVA_HOME/bin/java" "-Ddaisy.home=$DAISY_HOME"
org.outerj.daisy.backupTool.BackupTool $@

You should add something like -Xmx512M immediately after
"$JAVA_HOME/bin/java"

(where 512M is the amount of memory you want to assign.  Increase some
more if necessary)

HTH,
Karel


On Tue, 2008-04-08 at 21:33 +0800, Steven wrote:
> I use daisy1.5.1,and successfully back up  with  [root at daisy
> bin]# ./daisy-backup-tool -d /opt/daisydata/ -b -l .
> 
> And  restore with 
> 
> [root at daisy2 bin]# ./daisy-backup-tool -r 20080408_000
> -l /opt/daisy/bin -d /opt
> 
>  
> 
> Two server use same version ,backup and restore with the same path,but
> it doesn`t work 
> 
>  
> 
> Restoring backup-20080408_000 ...
> 
> Running mysqladmin -f --user=daisy --password=daisy -h localhost drop
> daisyrepository
> 
> Running mysqladmin -f --user=daisy --password=daisy -h localhost
> create daisyrepository
> 
> Running mysql --user=daisy --password=daisy --host=localhost
> daisyrepository
> 
> and piping database script into it.
> 
> Exception in thread "main" java.lang.OutOfMemoryError
> 
>         at java.util.zip.ZipFile.open(Native Method)
> 
>         at java.util.zip.ZipFile.<init>(ZipFile.java:203)
> 
>         at java.util.zip.ZipFile.<init>(ZipFile.java:234)
> 
>         at
> org.outerj.daisy.backupTool.BackupHelper.unzipToFile(BackupHelper.java:125)
> 
>         at
> org.outerj.daisy.backupTool.BackupHelper.unzipToDirectory(BackupHelper.java:119)
> 
>         at
> org.outerj.daisy.backupTool.FileBackupEntry.restore(FileBackupEntry.java:82)
> 
>         at
> org.outerj.daisy.backupTool.BackupManager.restore(BackupManager.java:142)
> 
>         at
> org.outerj.daisy.backupTool.BackupTool.restoreBackup(BackupTool.java:202)
> 
>         at
> org.outerj.daisy.backupTool.BackupTool.main(BackupTool.java:98)
> 
> 
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy


More information about the daisy mailing list