Hi,
I've just tried form the console:

connect plocal:/temp/databases/GratefulDeadConcerts admin admin
backup database /temp/someFile.zip

create database plocal:/temp/databases/a admin admin plocal
restore database /temp/someFile.zip

And worked.

Lvc@



On 2 April 2014 18:51, odbuser <[email protected]> wrote:

> OrientDB version 1.7-rc2
>
> Is there something wrong with the backup and restore feature in 1.7-rc2?
>
> Given a database path of:
> /test/aaa/project/db
>
> Path backupFile = Paths.get("someFile.zip");
> OutputStream oS = new FileOutputStream(backupFile.toFile());
>
> // Backup the database
> graph.getRawGraph().backup(oS, null, null, null, 1, 1024);
>
> The backup file contains a directory with the database:
> someFile.zip:/aaa/project/db
>
> This doesn't look right to me... shouldn't this be at the top level of the
> zip?  When I restore using:
>
> graph.getRawGraph().restore(iS, (Map<String,Object>)null, (Callable<Object
> >)null, (OCommandOutputListener)null);
>
> the zip file is just extracted under the backup directory:
> /aaa/project/db/aaa/project/db
>
> So now I have the original database AND the restored database in the
> nested directory.  Do a backup and restore several times and this keeps
> nesting.  I think this is due to
>
>
> com.orientechnologies.orient.core.compression.impl.OZipCompressionUtil.java:120
>         String entryName = folderName.substring(baseFolderName.length() +
> 1, folderName.length());
>
> I don't think it's composing the entry name correctly.
>
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to