1. Description
  2. Archive
  3. Elements
  4. Merger strategy
  5. Mail

This feature is available from version 3.5.0.

Description

Data import functionality is available in the Operation tab. 

It can be used to import all or part of the data contained in an archive created by Ametys.

Clicking on the button opens the following window: 

Archive

The list is automatically populated with archives generated by Ametys. 

An archive is generated by Ametys, via the task scheduler, with the "Archive data" task. 

If you're working on a WEB application, you'll need to install plugin WebContentIO to export WEB data. 

These zip files are located in the [AMETYS_HOME]/data/archives directory. 

The import function only works with an archive generated by Ametys. 

Elements

Users can select the item(s) they wish to import (the drop-down list is accessible once an archive has been selected): 

  • All: imports the entire archive. 
  • All contents: imports all archive contents.
  • Plugin Plugin_Name': imports only this plugin. 
  • All resources: imports the contents of the resource explorer. 
  • All sites: imports all sites in the archive. 
  • Site 'Site_Name': imports only this site.

Merger strategy

The available merge strategies are : 

  • Delete items before import: All selected items will be deleted before import. 
  • Ignore existing items: An existing item (same identifier) will not be imported.
  • Replaces existing elements: An existing object (same identifier) will be replaced by the import.
  • Fails with existing element: An existing object (same identifier) will stop the import and generate an error in the report. 

Mail

Once the import is complete, a mail message is sent to the user who performed the import to inform him/her that the import is complete. 

This mail is sent in the event of both success and failure (in which case details of the failure are listed at mail). 

As indicated in the mail received at the end of an import, a total re-indexing must be carried out, as well as a reconstruction of the complete live. If the "Sites" tool is open in the application, it will be necessary to refresh it to view any new sites imported. 

Back to top

Content IO