Saving and loading import or export or undo settings
Content Porter lets you save your current import, export or undo settings to a file before you run the import, export or undo. Such a settings file contains information about which content to transfer from where to where.
You can use the settings file in several ways:
- Users can load this file to repeat an import, export or undo. While clicking through the wizard after loading the file, the user can make changes to the settings or leave them as they are.
- On the command line, a user can run the command line mode of Content Porter to fully automate the export or import process.
- You can put the saved file in a command line Content Porter call, then include that call in a batch file. You can run the batch file whenever you want to, or schedule it so that it runs automatically at a predefined time.
When a user saves the import, export or undo settings, Content Porter makes a snapshot of the Content Manager as accessed by that specific user at that point in time. When the configuration is loaded again, both the rights of the user loading the configuring and the Content Manager may have changed so much that repeating the import, export or undo is no longer possible.
Here are some examples of changing conditions that can make a repeated export or import possible:
- A user with access to a publication called "MyPub" exports MyPub, saving the export settings before running the export. Another user, with no access to MyPub, loads the saved file and tries to perform the same export. This export fails because the user who loaded the file has insufficient rights to perform the export.
- A user exports a "Folder1" in a Publication "MyPub", but not a "Folder2" in the same Publication, and saves the export settings before running the export. After export, somebody deletes Folder2. Two days later, another user loads the saved file and makes a change: she selects Folder2 for export as well. The export of Folder2 fails because it does not exist anymore.
In general, the following rules apply:
- If you change your data set between saving and loading of export settings or import settings, the export or import is no longer guaranteed to work.
- When you perform an export using saved settings, click the Refresh button in any tree view window to display an up-to-date version of the selected node.