Hi,
thank you for the test case, it's fixed now in develop branch.

Lvc@



On 3 April 2014 01:57, odbuser <[email protected]> wrote:

> Try programmatically
>
>         Path backupFile = Paths.get("testbackup.zip");
>         OutputStream oS = new FileOutputStream(backupFile.toFile());
>
>         OrientGraphFactory factory = new OrientGraphFactory("plocal:
> backupTest", "admin", "admin");
>         graphNoTx = factory.getNoTx();
>         graphNoTx.getRawGraph().backup(oS, null, null, null, 1, 1024);
>
>         ZipFile zipFile = new ZipFile(backupFile.toFile());
>         Enumeration enumeration = zipFile.entries();
>         System.out.format("ZipFile : %s%n", zipFile);
>         while (enumeration.hasMoreElements()) {
>             Object entry = enumeration.nextElement();
>             System.out.format("  Entry : %s%n", entry);
>         }
>
> The entries in the zip will have a right truncated absolute path.  It
> should be rooted at the db directory.
> e.g. db in:
>
> /aaaaa/123/abcdefghijklmnopq/1234567890/backupTest
>
> will have a backup zip file with entries prefixed with:
>
> abcdefghijklmnopq/1234567890/backupTest/
>
> Restore appears to be doing the correct thing if the zip file entries were
> rooted correctly, but not like above.
>
>  --
>
> ---
> 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