Downloading and Exporting Entries
Section 6.0: Downloading and Exporting Entries
There are a number of ways to access the files and other content stored by RAMADDA. When you are viewing a Folder or other container entry open the menu () and under the File menu are options - Zip and Download Tree and Bulk Download Script. If you are logged in there is also a Export Entries service.
The Zip and Download Tree will produce a .zip file of the entire entry hierarchy. Note - there are size limits in place (some number of GB). The Bulk Download Script will return a shell script that, when run on your machine, will recreate the entry hierarchy a directories on your machine and will download the files. Note: this uses some shell programming and the curl program to download the files. This has been tested on Mac and Unix machines but not in Windows. You can change the default behavior of the service, e.g., adding download of xml metadata files, overwriting the files, etc. by copy-and-pasting the URL and adding new URL arguments. e.g.:
If a file already exists the script will not download the file. To change this behavior add the URL argument:
Normally when you are viewing a Folder (or Project, etc) the download script will not create a directory for the Folder. It will just download all of the children entries. To have the script also create a directory (and fetch metadata, etc) for the current Folder add:
To also have the script download any other outputs (e.g., GeoRSS, THREDDS catalog) add the outputs URL argument:
&outputs=<comma separated list of output ids>
e.g.: to also fetch the ATOM xml feed do:
Other outputs include:
You can export the RAMADDA entry xml format then, from your own RAMADDA, harvest the directory tree the script creates and you will have an exact replica of the original RAMADDA content and data. Just add on: