Last active
April 15, 2020 11:41
-
-
Save rah003/94ae552c587a98afc91fc0f1d2074bc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.xml.* | |
import info.magnolia.importexport.DataTransporter; | |
repo = "dam" | |
path = "/" | |
outPath = "/tmp/dam.xml" | |
f = new File(outPath); | |
fileOut = new FileOutputStream(f); | |
DataTransporter.executeExport(fileOut, false, true, ctx.getJCRSession(repo), path, repo, ".xml"); | |
fileOut.close(); | |
println "exported? " + f.exists() | |
println "size:" + f.length() / 1024d + " kb" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment