CLI Example: Unarchive a Catalog Archive
You can unarchive a catalog archive programmatically using the Catalog Manager command line interface. For example, you can write a script to unarchive a catalog that you want to migrate to your production system.
Syntax to Unarchive a Catalog Archive
runcat.sh -cmd unarchive -online <Oracle Analytics Cloud URL>
-inputFile <path to catalog archive>
-folder <target catalog folder>
-credentials <file with login username and password>
Example
In this example, you unarchive the catalog archive
sales.catalog
to the
/Shared
folder:
runcat.sh -cmd unarchive -online "https:/myoac.ocp.oraclecloud.com/analytics-ws" -inputfile /scratch/catalog/sales.catalog -folder "/Shared" -credentials /scratch/mycredentials.txt
Where the credentials file contains the rows:
login=<userid>
pwd=<password>