You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it is necessary to export resource, for example to backup a part of the resource tree or to save the state of the resource tree for demonstration and experiments.
Export Resources
The ACME CSE offers a simple and portable way to export single resources or a whole part of the resource tree. In the text UI when clicking on a resource a tab Services contains the service "Export Resource". When clicking on the "Export" button a resource and (depending on the "child resource" checkbox) its child resources are exported to a directory as a shell script with the current date and time. The directory is the tmp directory under the CSE's root directory.
The generated script contains the necessary commands to send Mca CREATE requests using curl commands over http for the exported resources.
One is free to make modifications to the exported resources as necessary, or to combine various resource scripts into a single script.
Import Resources Again
The generated shell script contains three sections:
The variable cseURL that is set to the URL of a CSE where the resources will be imported again. This should be set to appropriate address when targeting another CSE.
Shell functions that construct the CREATE requests and send it using the curl command line tool.
At the bottom are the shell function calls with the originator, resource type, and resource representations.
Important
Note, that the resource representations can only contain the resource attributes that can be present in CREATE requests. This means that, for example, the resourceID of a resource is not present.
This also means, unfortunately, that references between resource may be incomplete after an export and need to be set manually afterwards.
To import the resources in an export script just run the script in a (bash) shell:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes it is necessary to export resource, for example to backup a part of the resource tree or to save the state of the resource tree for demonstration and experiments.
Export Resources
The ACME CSE offers a simple and portable way to export single resources or a whole part of the resource tree. In the text UI when clicking on a resource a tab Services contains the service "Export Resource". When clicking on the "Export" button a resource and (depending on the "child resource" checkbox) its child resources are exported to a directory as a shell script with the current date and time. The directory is the tmp directory under the CSE's root directory.
The generated script contains the necessary commands to send Mca CREATE requests using curl commands over http for the exported resources.
One is free to make modifications to the exported resources as necessary, or to combine various resource scripts into a single script.
Import Resources Again
The generated shell script contains three sections:
cseURL
that is set to the URL of a CSE where the resources will be imported again. This should be set to appropriate address when targeting another CSE.Important
Note, that the resource representations can only contain the resource attributes that can be present in CREATE requests. This means that, for example, the resourceID of a resource is not present.
This also means, unfortunately, that references between resource may be incomplete after an export and need to be set manually afterwards.
To import the resources in an export script just run the script in a (bash) shell:
Example Script
Beta Was this translation helpful? Give feedback.
All reactions