Skip to Content

Create ZIP file from Hana Dump using XSJS


As part of our project, our tool need to export a Hana schema as a dump and import it again to recreate a new schema with same dump file. We are using XSJS job to export dump.

For one use case we need to transfer this dump from one Data Center to other by SFTP as the new schema need to be created in a different DC.

As HANA dump is not a single file, we are trying to validate ways to create zip file from the dump.

So, want to know if we can implement ZIP functionality using XSJS itself so that it would run on Hana database server.

Can this be achieved using XSJS?

Do we have ZIP libarary which can zip large dumps upto 500GB ?

Or Is there a way in HANA by which we can export dump as a single file ?

Can someone please share if there is any reference documentation

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Feb 10 at 10:48 PM

    There's no canned solution for that in the standard documentation and neither is there a "single-file" option for the server-side EXPORT.

    As XSJS does not have access to the HANA server file system, building a solution to your problem in it does seem unnecessarily complicated.

    Why don't you create a Linux shell script that monitors the export folder and runs a gzip once the export is finished?

    Add comment
    10|10000 characters needed characters exceeded