> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/admin-guide/settings/advanced-tasks.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Advanced Tasks

Tasks are automatic jobs that you can schedule or start manually. A task defines the scope of a Miria job, the source and destination of the data that it processes, its scheduling, and many other options.

Miria embeds basic maintenance tasks. Thus there is no need for you to create them for the product to be operational; however, you may customize basic tasks or create new tasks with specific characteristics.

## Task Types

There are two categories of tasks :

* **Internal management tasks**\
  Internal management tasks are automatic tasks (i.e., they launch jobs based on a\
  schedule).
* **Data movement tasks**\
  Data movement tasks let you select and move the data to and from the repository. You can launch these tasks either manually or automatically.

### Internal Management Tasks

The following table describes the template that you can use to create internal management tasks (<mark style="color:blue;">Table 9</mark>).

<table><thead><tr><th width="227.66668701171875">Task</th><th>Description</th></tr></thead><tbody><tr><td><strong>Automatic deletion</strong></td><td>Deletes the source data that matches a set of constraints once you have archived the source data. A deletion task only deletes the source data archived through an automatic archiving task.See <a href="#automatic-deletion-task">Automatic Deletion Task</a> for details.</td></tr><tr><td><strong>Automatic retention</strong></td><td>Keeps archives tidy by permitting the deletion of objects that are no longer needed from the Miria database. It only applies to archives fed by automatic archiving tasks. See <a href="#automatic-deletion-task">Automatic Deletion Task</a> for details.</td></tr><tr><td><strong>Automatic FS deletion</strong></td><td>Deletes files and directories from the source storage of the file system. Users can set up deletion rules by defining inclusion and exclusion criteria, and configuring schedules.Given the sensitive nature of this task, access should be restricted to authorized users only, as improper configuration could result in data loss. To minimize risks, administrators are advised to limit access to automatic FS deletion tasks through Miria settings. See <a href="#automatic-deletion-task">Automatic Deletion Task</a> for details.</td></tr><tr><td><strong>Maintenance</strong></td><td>Scans the database and deletes useless data. You can choose the items to delete (e.g., expired instances, sub-job metadata, jobs, events, etc). A maintenance default task is scheduled to perform all maintenance operations, except job and event deletion, on every first Sunday of the month at 12:00 P.M. However, you can reconfigure it according to your needs, or create a new one. See <a href="#automatic-deletion-task">Automatic Deletion Task</a> for details.</td></tr><tr><td><strong>Retention</strong></td><td>Task automatically launched by the maintenance task.Create this task only if you need to configure behaviors that will apply to all retention operations launched by the maintenance task (e.g., to send an email each time it is performed). See <a href="#creating-a-task">Creating a Task </a>for details.</td></tr><tr><td><strong>Storage proxy maintenance</strong></td><td>Archiving and retrieval jobs in client mode create temporary files in a cache space on a storage proxy. This space is normally deleted after the jobs complete, but if a job terminates on error or is canceled, some files may remain.The storage proxy maintenance task scans the directories of the storage manager containers and deletes any temporary files that archiving and retrieval jobs in client mode have left. It requires no configuration.</td></tr><tr><td><strong>Volume management on storage manager</strong></td><td>Checks the space used on one or all of the storage managers. A high and a low water marks are defined in the storage manager configuration.See <a href="#volume-management-on-storage-managers-task">Volume Management on Storage Managers Task </a>for details.</td></tr><tr><td><strong>Miria Database backup for PostgreSQL</strong></td><td>Backs up the Miria database. See <a href="#database-backup-task">Database Backup Task</a> for details.</td></tr><tr><td><strong>Archive Report</strong></td><td>Generates a report on the archive volume. See <a href="#archive-report-task">Archive Report Task </a>for details.</td></tr></tbody></table>

### Data Movement Tasks

Data movement tasks can be launched either manually or automatically. They enable you to select and move the data to and from the repository.

#### Manual Tasks

These are the templates that you can use to create a manually launched task:

* Archiving.
* Copy.
* Delete.
* Move.
* Retention.
* Retrieval
* Synchronization.

Create a manually launched task only if you need to configure a behavior that will apply to all manual operations of that kind of tasks (e.g., to send an email each time the task is performed).

For the tasks created based on manual templates, you do not define any schedule.\
See [<mark style="color:blue;">Creating a Task</mark> ](#creating-a-task)<mark style="color:$primary;">for details.</mark>

#### Automatic Tasks

Automatic tasks launch jobs that are based on a schedule. For the tasks that you create based on automatic templates, you can either set the Scheduler to launch them automatically or launch them manually.

This table describes the templates that you can use to create data movement automatic tasks<mark style="color:$primary;">.</mark>

<table><thead><tr><th width="195.66668701171875">Task</th><th>Description</th></tr></thead><tbody><tr><td><strong>Automatic Archiving</strong></td><td>Launches archiving jobs based on a schedule.</td></tr><tr><td><strong>Automatic catalog ingest</strong></td><td>Launches Catalog Ingest jobs to import external LTFS media into the Miria database.</td></tr><tr><td><strong>XML Ingest</strong></td><td>XML ingest tasks use XML files to run enriched automatic archiving. The XML files enable the customizing of archiving workflows and ingest interfaces. In addition to the archiving task scheduling, the XML ingest tasks enable you to perform these operations: archiving of specific files rather than whole directories; attributing metadata to files and folders; archiving into different archives and folders with a single run of the task. You are responsible for creating the XML files that launch the task. If they are not written directly with the Atempo format, you can translate them to the proper format applying a style sheet that you can request from Atempo Professional Services. <a href="#xml-ingest-tasks"><mark style="color:blue;">XML Ingest Tasks</mark></a> for details.</td></tr><tr><td><strong>Interplay Dispatcher</strong></td><td>Task available only for users of the Miria for Avid Interplay application. This task requires a specific license. See the Partner Applications Documentation for details on the Miria for Avid Interplay application. See Interplay Dispatcher Migration Task for details on configuring the Interplay Dispatcher task.</td></tr></tbody></table>

## Creating a Task

The User Web Interface provides three ways to create a new task:

### Creating a New Task from the Tasks Tab

**To create a task**

1. From the Web User Interface left pane, select **Tasks**.
2. Click the **+ NEW** button at the top right and select a kind of task among the list.
3. Set the configuration parameters set in [<mark style="color:blue;">General Configuration Parameters for Tasks</mark>](#general-configuration-parameters-for-tasks)

### Duplicating an Existing Task

You can duplicate an existing task and then customize it to exactly fit to your new needs.

**To duplicate a task**

1. From the Web User Interface left pane, select **Tasks**. The tasks list opens.
2. Click the <img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FphJ9BOWKv0b6t5lbJX2g%2Fimage.png?alt=media&amp;token=c25aefcd-6ecc-424b-8073-99e8856f0715" alt="" data-size="line"> button of one of them and select **Duplicate**.
3. Enter the name of the new task and click **OK**. The duplicated task displays in the tasks list. You can modify its parameters to suit your needs.

## Organizing tasks

You can classify the tasks into projects. This help you navigate when there are many tasks. The tasks are displayed in a tree-like structure with the projects as a kind of folder, into which you can drag the existing tasks <mark style="color:$primary;">(Figure 31).</mark>

<figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2Fk3VKpKr31OXwfENP2WVg%2Fimage.png?alt=media&amp;token=bb0e6019-1418-4859-ac96-173bdd808dcf" alt=""><figcaption></figcaption></figure>

### Manage projects

Here are the different options the projects pane gives you:

**Projects:**

* Add folders. Create a new folder and name it.
* Refresh. Give the arborescence an update.

**Folders:**

* Refresh. Give a folder an update.
* Rename. Change a folder's name.
* Delete. Delete a folder.

### Move a task

When you click on a folder, the tasks it contains appear on the right side of your screen.\
You can drag and drop any task to move it from one folder to another.

## Running a task

This topic describes the running phases of Miria tasks.

### How Tasks Run

Although you can launch tasks manually, characteristically the Scheduler launches them at regular scheduled intervals.

> **Note**: This process of selection alone can be quite lengthy. For example, if whole file deduplication has been configured on the archiving, the task must read every file selected to calculate the deduplication hash code on it. By default, the task waits until it has finished selecting files. It then gathers them into a single job and launches the job. If you have configured the parallelization parameters, the task launches several jobs before it has finished the selection of the files.

In the List of Jobs window the task displays on several lines <mark style="color:$primary;">(Figure 32).</mark>

<figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FNosMdY583PF6eu1RmJGL%2Fimage.png?alt=media&amp;token=48f1b8cc-1f17-48ee-b8da-4a458e986174" alt=""><figcaption></figcaption></figure>

Depending on the number of files to select, the use of deduplication, the size of the files, etc., the selection process can take long enough that the automatic task restarts before the previous iteration of the same task is finished, and before all the files have actually been archived. In order to prevent overlapping scheduled tasks from treating the same files, the default behavior is for only one instance of a task to run at any one time. Here is an example:

* The Scheduler launches an automatic archiving task, scheduled to run at midnight every\
  24 hours.
* The task takes 48 hours to select all the files to be archived.
* Twenty-four hours after the first launch of the task, the Scheduler is ready to relaunch it, but the first task is still collecting files.

If a second instance of the same task were to launch at its scheduled time, it would start to select the same files that the first instance has not finished selecting.

For this reason, the second instance of the task is not permitted to run until all the jobs launched by the first instance have completed. The first instance of the task remains in Running status until the last of its jobs is finished.

Any post-processing, such as the sending of e-mail notifications, thus occurs when both the task itself, and all of its jobs, are complete.

### Testing a Task

Once you have created a task, you can preview whether it is configured correctly and if the files and directories included in the task are appropriate. Testing a task creates a task job, but does not archive or delete any data. The List of Jobs displays the task job.

**To test a task**

1. Click the **Tasks** tab in the left pane of your screen. The tasks view opens, and a list of tasks displays.
2. Click the <img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FFXVao15Za2Bs6pj8xm8M%2Fimage.png?alt=media&amp;token=af22c077-c8fe-4350-89f2-4b721991ee62" alt="" data-size="line"> button and select **Start task in test mode**. A pop up opens.
3. Click **Yes** to validate. In the jobs list
4. Go to the jobs tab, in the jobs list, you can see your task. Its status is indicated. You can see the details, open the logs or download a report from this task.

### Launching a Task Manually

You can manually launch all tasks configured in Miria. Therefore, you can launch a task at any time without waiting for the task to reach its start date as entered in the scheduler. To launch a task manually

1. Select the **Tasks** tab in the left pane. The tasks view opens.
2. Click the <img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FoQBphaOkUYfvJ04jXYpA%2Fimage.png?alt=media&amp;token=d4c6c23e-b7c1-4fcb-9b9d-c89474a14c7c" alt="" data-size="line"> button of one of the tasks in the tasks list.
3. Select **Start task.**
4. Click **Yes** on the confirmation dialog box. The task creates and launches the corresponding job.

### Canceling a run

You can cancel a run in the same manner as a job.

**To cancel a current run**

1. Select the **Jobs** tab in the left pane. The jobs view opens.
2. Click the button of one of the current runs in the jobs list.
3. Select **Cancel**
4. Click **Yes** on the confirmation dialog box. The run is then displayed in the History section of the List of Jobs with a Canceled status.

For all task types except Automatic Retention and Maintenance, Miria takes into account the Cancel request every five minutes. The effect of a Cancel request is to half the task selection process. No new job is created. Any jobs that the task has already launched continue running until completed, unless you cancel them too.

## General Configuration Parameters for Tasks

This topics describes the configuration parameters and tabs that are common to all types of tasks.

### General Parameters Common to All Tasks

#### From the Tasks List

In the tasks interface, choose a task from the task list and click the button to access to the\
following options ([<mark style="color:blue;">Running a task</mark>](#running-a-task)):

<table><thead><tr><th width="163.00006103515625">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Edit Task</strong></td><td>When creating a new task, you have first to select a task type. See <a href="#creating-a-task">Creating a Task.</a></td></tr><tr><td><strong>Start Task</strong></td><td><p>Immediate manual launch of the task. See<a href="#launching-a-task-manually"> Launching a Task Manually</a> for details.</p><blockquote><p><strong>Note:</strong> For backup tasks, you can start them in full or incremental mode.</p></blockquote></td></tr><tr><td><strong>Start the task in test mode</strong></td><td>Creates a task job for preview, but does not archive or delete any data. See <a href="#testing-a-task">Testing a Task</a> for details.</td></tr><tr><td><strong>Duplicate task</strong></td><td>Duplicates a task with the same configuration.</td></tr><tr><td><strong>Disable</strong></td><td>Lets you deactivate the task temporarily, without deleting it.</td></tr><tr><td><strong>Email notification</strong></td><td><p>Gives you access to the list of users that are notified by email when a scheduled task runs. To set when email notifications should be sent to a user or a group :</p><ol><li>Click <strong>+ Add</strong> in the upper-right corner of your screen.</li><li><p>Select at least one user or group, then click one of these options:</p><ol><li><strong>No email is sent at the end of the task.</strong></li><li><strong>Email is sent with every task run.</strong></li><li><strong>Email is sent only on error.</strong></li></ol></li><li>Click <strong>Add</strong>.</li></ol></td></tr><tr><td><strong>Settings</strong></td><td><p>Gives you access to the settings. You can change them directly here, or apply a template. Tasks inherit their settings only from the default settings (exception: <strong>Archiving Policy</strong> inherited from the repository; if none, from default settings). If a setting is defined on a specific task through this tab, it overrides inherited values. Available task settings: <strong>Jobs, Email, Security</strong> (other types are irrelevant).</p><p>The <strong>Object Groups</strong> pop-up lets you select an existing object group in Miria; the task inherits the relevant subset of advanced settings defined for that group. You can modify advanced settings individually by clicking the <strong>Value</strong> field next to the setting and selecting a value. See <mark style="color:blue;">Default Settings</mark> and <mark style="color:blue;">Settings Templates.</mark></p><blockquote><p><strong>Note:</strong> For tasks that do not require configuration (e.g., manual tasks), this tab is grayed out.</p></blockquote></td></tr><tr><td><strong>Report history</strong></td><td>You can display and download the volume reports from the <strong>Report History</strong> button.</td></tr></tbody></table>

#### When Creating or Editing a Task

<table><thead><tr><th width="177">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Task type</strong></td><td>When creating a new task, you have first to select a task type. See <a href="#creating-a-task"><mark style="color:blue;">Creating a Task</mark></a><mark style="color:blue;">.</mark></td></tr><tr><td><strong>Task name</strong></td><td><p>Name that identifies the task within Miria.</p><blockquote><p><strong>Important:</strong> When naming a new automatic task, do not use these terms (in either lowercase or uppercase) as they are reserved for the template name: <strong>ARCHIVING, RETRIEVAL, COPY, MOVE, DELETE, SYNCHRO, RETENTION</strong>.</p></blockquote></td></tr></tbody></table>

### Common Tabs

#### The configuration tab

The Configuration tab enables you to set the configuration parameters for the individual Miria tasks, as described in Task-specific Parameters.\
For tasks that do not require configuration, such as manual tasks, this tab is grayed out.

#### The Scheduling tab

The schedule allows you to define the regular times at which the automatic tasks must be started. The Scheduling tab enables you to define the regular times at which automatic tasks are to be launched. It is active for all tasks, except basic archiving, retrieval, copy tasks...

An error message displays if no occurrence in the month, days, and hours, minutes are set when the Scheduler is activated.

To set the scheduling:

1. Click the toggle **ENABLE SCHEDULING.**
2. Select a week day and an occurrence in the drop down menu. It specifies the day(s) of the week when automatic tasks must be started and at which frequency.
3. Select a time and check **Every 5 minutes**, or **At specific minute.** It specifies the time when the automatic tasks must be started.

   > **Note**: For backup tasks, you can schedule both full, and incremental modes.

#### Options Tab

The options tab enables you to associate run timeframes and run locks with the task, as well as any pre- or post-processing scripts.\
The pre- and post-processing scripts must be located on the agent defined in the task.\
This table describes the parameters of the Advanced tab:

<table><thead><tr><th width="148.99993896484375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Task type</strong></td><td>When creating a new task, you have first to select a task type. See <a href="#creating-a-task">Creating a Task.</a></td></tr><tr><td><strong>Task name</strong></td><td>Name that identifies the task within Miria. <strong>Important:</strong> When naming a new automatic task, do not use these terms (in either lowercase or uppercase) as they are reserved for the template name: <strong>ARCHIVING, RETRIEVAL, COPY, MOVE, DELETE, SYNCHRO, RETENTION</strong>.</td></tr><tr><td><strong>Run timeframe</strong></td><td>Period during which a task is permitted to run or prevented from running. This feature enables you to prevent tasks from running at times when you know there is heavy use of network resources for other operations. Click to select a run timeframe among those configured in Miria. To associate a task with a run timeframe, you must have configured it in the list of <strong>Run Timeframes</strong> interface. See <mark style="color:blue;">Run Timeframes.</mark></td></tr><tr><td><strong>Run lock</strong></td><td>Limits the number of Miria tasks of any kind that can run simultaneously. Click to select a run lock among those configured in Miria. To associate a task with a run lock, you must have configured the Run Lock in the list of <strong>Run Locks</strong> interface. See <mark style="color:blue;">Run Locks</mark> for details.</td></tr><tr><td><strong>Next task</strong></td><td>Select the next task among the drop-down list.</td></tr><tr><td><strong>Maximum number of simultaneous runs</strong></td><td>Number of times the current task can be run simultaneously. You can modify this field only for manual archiving and retrieval tasks. A user can launch one manual archiving and then launch a second before the first has completed. If you do not want to limit the number, leave this field at <strong>0</strong>. For all types of tasks other than manual, this parameter is set to <strong>1</strong> and you cannot modify it. This parameter differs from the <strong>Run lock</strong> notion: it concerns only the task being configured, while a run lock can be invoked on tasks of disparate types to prevent more than a specified number of tasks of any kind from running concurrently.</td></tr><tr><td><strong>Wait when the maximum number of runs is reached</strong></td><td>Select this box if you do not want additional tasks to be canceled (e.g., if the Maximum number of simultaneous runs is <strong>3</strong>, the fourth task is not canceled). If selected, Miria waits for the first three tasks to complete before running the fourth task.</td></tr></tbody></table>

#### The Report History Tab

The Report History tab displays information on the generated reports (e.g., by the Archive Report task).\
This table describes the columns of the List of available reports:

<table><thead><tr><th width="165.66668701171875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Date</strong></td><td>Time and hour at which the report was generated.</td></tr><tr><td><strong>Name</strong></td><td>Name of the report in the <code>Archive_date-time.ext</code> format.</td></tr><tr><td><strong>Size</strong></td><td>Size of the generated report that is in PDF format.</td></tr><tr><td><strong>Download button</strong></td><td>Opens the report in the associated browser. Then, you can download the PDF file from the server to your local machine. For the Archive Report task, you can also obtain a volume report from the <code>ADA\Report</code> directory using the Windows Explorer.</td></tr><tr><td><strong>Delete button</strong></td><td>Click this button to delete the selected report from the server.</td></tr></tbody></table>

## Task-specific Parameters

Some tasks require particular configurations (e.g., it may be necessary to specify the platforms and directories that the task must scan for files to process, or you may want to set constraints on the files, such as age or size).

For all automatic tasks, see [<mark style="color:blue;">General Configuration Parameters for tasks</mark>](#general-configuration-parameters-for-tasks) in the table General parameters common to all tasks, to know how you can name them.\
Define these settings in the Configuration tab of the task Properties pane. Each task has its own requirements, so the tab displays different fields depending on the task that you are configuring.

See [<mark style="color:blue;">General Configuration Parameters for tasks</mark>](#general-configuration-parameters-for-tasks) for details on the configuration parameters that apply to all tasks.

### Automatic Catalog Ingest Task

This table describes the fields that you can complete to configure the Automatic Catalog Ingest task:

<table><thead><tr><th width="153.666748046875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Ingest Type</strong></td><td>Select Media/LTFS from the list.</td></tr><tr><td><strong>Storage Manager Container</strong></td><td>Only for Media Manager storage manager container. Select from the list, an ingest Storage Manager Container into which you want to ingest the media.</td></tr><tr><td><strong>Retention</strong></td><td>Select from the list a retention that you want to apply to the data imported from the media. Click the <strong>+</strong> button to add a retention.</td></tr><tr><td><strong>Library</strong></td><td>Library in which Miria stores the archived data. The library alias (if any) displays between parenthesis. If you have completed the <strong>Barcode Selection</strong> field, this field is ignored. This parameter is mandatory if you do not specify a <strong>Scratch Media Group</strong> or if you have not completed the <strong>Barcode Selection</strong> field. Click the <strong>Browse</strong> button to select the library. Click the <strong>Minus (-)</strong> button to reset the field.</td></tr><tr><td><strong>Media Type</strong></td><td>Type of the media that you want to use for this storage manager container. Complete this field only if the library may contain media of several types (e.g., <strong>LTO-6</strong> and <strong>LTO-7</strong>), and that you want to use only one type. If you have completed the <strong>Barcode Selection</strong> field, this field is ignored. If you have not completed the <strong>Barcode Selection</strong> field, this field becomes optional as it defines the media type identifier. If this field remains undefined, all the orphan media belonging to the selected library are ingested into the selected archive. Click the <strong>Select</strong> button to display the list of compatible media types. You can select either a <strong>Media</strong> or a <strong>Class</strong>.</td></tr><tr><td><strong>Define filters on barcodes</strong></td><td><strong>Optional.</strong> Select <strong>Include</strong> from the list to ingest media with a specific barcode range. Select <strong>Exclude</strong> to exclude a barcode range from ingestion. Enter the barcode range in the text field as a pattern using wildcards: <strong>*</strong> (any alphanumeric character any number of times), <strong>?</strong> (any alphanumeric character once), <strong>|</strong> (separates several possible pattern options). The expression must contain at least one <strong>*</strong> or <strong>?</strong>. Examples: <strong>A005??</strong> includes/excludes any media with a six-character barcode starting with <strong>A005</strong> (e.g., A00500–A00599). <strong>*L4</strong> includes/excludes any media with a barcode ending in <strong>L4</strong> (e.g., only LTO4). <strong>162* | WV*</strong> includes/excludes any media with a barcode beginning with <strong>162</strong>, or beginning with <strong>WV</strong>.</td></tr><tr><td><strong>Existing repository</strong></td><td>Imports the media into a repository which already exists in Miria. Select <strong>Existing repository</strong> and click the button to choose a repository from the arborescence. The data will be imported at the repository root in a folder named after the media barcode. If the selected repository is not associated with a Media Manager storage manager container, you will have to complete the <strong>Storage Manager Container</strong> field.</td></tr><tr><td><strong>New repository</strong></td><td>Imports the media into a new repository. <strong>Project:</strong> Click the button to select a repository project from the tree or add a new folder if necessary. <strong>Reference repository:</strong> Click the button to select from a list the repository that will be used as a template to create the new one. <strong>+ :</strong> Creates a new repository which can then be selected as reference repository. By default, the repository is created at projects root with the <strong>Data Mover</strong> mode set to archiving.</td></tr></tbody></table>

### Automatic Deletion Task

These tasks delete the source data that matches a set of constraints once the source data has been put in repositories. Only the source data put in a repository through an automatic archiving task is deleted.\
This table describes the parameters displayed in the Source & Target tab:

<table><thead><tr><th width="245">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Storage platform</strong></td><td>Select the storage platform in which you want to delete data.</td></tr><tr><td><strong>Location of data to delete</strong></td><td>Enter the path of the data that Miria can delete.</td></tr><tr><td><strong>Repository name</strong></td><td>Select the target repository.</td></tr><tr><td><strong>Full path auto-generated</strong></td><td>Select the repository for which source data is deleted once it has been archived.</td></tr><tr><td><strong>Archive repository</strong></td><td>Possibility to store archived objects in archive repositories.</td></tr></tbody></table>

### Automatic Retention Tasks

The automatic retention task provides a method to assign a retention period to these orphaned objects. Then, the first automatic maintenance task to run on the repository after the retention period has expired can delete them.\
The automatic retention task works in this way:

* If the object database instances have no defined retention period (the associated retention was set to Without), then the retention period defined in the automatic retention task is applied.\
  If the automatic retention task does not have any retention periods defined, the retention is set to expire on the current date.
* Then, the next maintenance task to run after the expiration of the retention period\
  eliminates the orphaned database instances.

> **Important**: This table describes the Source & Target tab parameters for an automatic retention task:

<table><thead><tr><th width="238.3333740234375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Storage platform</strong></td><td>Displays the platforms configured in Miria. Select the platform that hosts the data to put in repositories.</td></tr><tr><td><strong>Data for applying retention</strong></td><td>Enter the root of the path from which the automatic retention task runs. You can enter multiple paths.</td></tr><tr><td><strong>Repository name</strong></td><td>Select the target repository.</td></tr><tr><td><strong>Full path auto-generated</strong></td><td>Opens a list of all repositories to which you have rights as a logged-in user. Select a repository to associate with the task and validate by clicking the check mark.</td></tr><tr><td><strong>Archive repository</strong></td><td>Absolute destination path. Select the destination location to associate with the automatic retention task.</td></tr></tbody></table>

This table describes the Options tab parameters for an automatic retention task

<table><thead><tr><th width="146.33331298828125">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Retention</strong></td><td><p>Opens the List of Retention Periods window that displays the retention periods configured in Miria. Select the appropriate retention period and select the check mark.If you select None, the next maintenance task deletes files.The Apply on Object option enables you to refine the retention by applying a retention period to a file from a repository in these circumstances (they can be activated individually or together):</p><ul><li><strong>Apply on Object.</strong> When the object is no longer present on the file system.</li></ul></td></tr></tbody></table>

### Automatic Storage Repack Task

The repack task is used to defragment a media storage. When you launch an archiving job, Miria creates a .pax file containing all the files that will be put in repositories.

When a file from the repository is deleted, it is no longer referenced in Miria's database but still exists in the .pax file. The purpose of the repack task is to recover all the files that are still referenced in Miria. A new .pax file is then created which will contain all the files except those which have been deleted from the repository.

The volume of the repack task is defined by the following parameters:

<table><thead><tr><th width="235">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Nb. Expected Objects</strong></td><td>Total number of media present on the storage manager container.</td></tr><tr><td><strong>Nb Objects</strong></td><td>Number of media selected for repack.</td></tr><tr><td><strong>Volume Expected</strong></td><td>Total storage volume.</td></tr><tr><td><strong>Volume</strong></td><td>Actual volume of selected media.</td></tr></tbody></table>

> **Note**: When you create an automatic storage repack task, there are a few specific actions that you need to do:
>
> * Define the Source Storage Manager Container Name (Only a FileStorageContainer can be selected for a repack task. This container will be used to calculate the fill rate of each media).
> * Enter the Data Fragmentation Ratio percentage. This threshold will be used to select the media to repack. For example: A .pax file with a size of 150 MB contains File 1 (100 MB) and File 2 (50MB). When File 2 is deleted from the repository, there is (150-100) = 33% of free space to recover on this media. This percentage is the data fragmentation ratio and allows you to select all the media that have 33% or higher of free space to recover inside the .pax file.
>   * (Optional) Activate Delete source media after repack. The media selected for the repack job will be deleted if the repack job is completed without errors.
>   * (Optional) Set the maximum number of jobs running in parallel. By default, the task creates one job per media.

### Automatic FS Deletion Task

Automatic FS deletion tasks enable you to delete specific objects (files and directories) from the source storage in the file system. These tasks work similarly to archiving tasks.\
You can control which file and directory can be deleted using inclusion or exclusion criteria, preprocessing or post-processing commands and execution constraints. Criteria-matching directories are deleted, only if they contain no objects. Directories emptied by an automatic FS deletion task will be deleted by subsequent runs.

> **Important**: Due to the potential risk of data loss, this functionality is restricted to\
> administrators only. It is recommended to test any configuration using a backup task.

**Step 1: Select a source and destination for the data to delete**

> **Note**: Your basket will not be saved if you leave the task creation wizard before creating the task.

1. Navigate to the **Tasks** menu.
2. In the upper-right corner of the screen, click **+ New task,** then select the **Automatic FS Deletion** task. A confirmation pop-up is displayed informing you about the potential risks of data deletion.
3. Upon confirming your choice, enter a name for the task.
4. (Optional) Enter a comment.
5. Select a storage platform on which you want to delete data.
6. Select a source directory to host the data you want to delete, then specify the level at which deletion occurs. A value of 0 means that all levels will be processed (i.e, none will be protected). You can select multiple paths within the same source storage.

**Step 2: Configure the task**

1. (Optional) In the Inclusion/Exclusion objects section, enter criteria.

   > **Note**: Exclusions take precedence over inclusions. For instance, if<kbd>*.tmp*</kbd>*&#x20;is excluded and&#x20;*<kbd>*2007\_*</kbd><kbd>.tmp</kbd> is included, the <kbd>2007\_\*.tmp</kbd> files will not be deleted.

You can include or exclude files and directories by entering attributes (name, type,\
size, timestamps, owner attributes, etc.).\
To do so, you can use standard wildcards:\
– <kbd>\*</kbd> represents any number of characters.\
– <kbd>?</kbd> represents a single character.\
Example: To exclude the <kbd>\*.tmp</kbd> extension from the task, enter the file extension, then\
click **Add exclusion.**

2. Click **Next**.
3. (Optional) Set your scheduling options:
   1. Activate scheduling options.
   2. Select the days of the week when automatic tasks must be started as well as a frequency.
   3. Set a time at which automatic tasks must be run. You can set a time in hours and minutes, or set a time in hours and automatically run the task every 5 minutes.
4. Click **Next**.
5. (Optional) Configure custom settings for the job associated with the task:
   1. Enable the Commands option.
   2. Enter pre-processing or post-processing commands to customize the job.
6. (Optional) Specify execution constraints to limit the number of objects you want to delete when the task is running. If no constraint is specified, the files and directories contained in the source directory are deleted, except for those excluded from the task.

   > **Note**: Constraints apply to the entire task and not per path, which means all the defined criteria must match the selection.

   1. Enable the **Constraints option.**
   2. Click **+ New constraint.**
   3. Select a constraint type among the following constraints:
      1. Last access date.
      2. Last modification date.
      3. Creation date.
      4. File size.
      5. Object type.
   4. Specify how far back in time the operation must go. For instance, if you want to find objects that were created more than 5 months before, select **Older than** as operation, 5 as value and Month as unit.
   5. Click **Add**.
7. (Optional) Adjust run options to associate the task with other tasks:
   1. Select a timeframe, a lock and the task that must be run when the task is over.
   2. Enter a maximum number of simultaneous runs. You can also pause the task when the maximum number of simultaneous runs is reached.
8. Click **Next**, check the summary panel and click **Create** to save the task.

### Automatic Data Move task

Automatic data move tasks enable you to automatically move directory content between two storage platforms. These tasks work similarly to migration tasks. Automatic data move tasks operate as follows:

1. **Selection phase:** Objects that match the defined criteria are identified on the source storage.
2. **Move phase:** Data is transferred to the target location.

**Step 1: Select the directories to move**

> **Note**: Your basket will not be saved if you leave the task creation wizard before creating the task.

1. Navigate to the **Tasks** menu.
2. In the upper-right corner of the screen, click **+ New task,** then select the **Automatic data move task.**
3. Enter a name for the task.
4. (Optional) Enter a comment.
5. Define the source and target platforms.
6. Click **Next**.
7. Specify the directory you want to move and the target platform. You can perform various operations by clicking <img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FLm7qJASQTZY2fuler527%2Fimage.png?alt=media&amp;token=46a09990-d17d-4972-a6dc-d674e9bc4957" alt="" data-size="line"> the icon on the far-right side of each directory: For instance, you can add a directory within an existing directory or rename a directory. The same is possible for the storage destination.

> **Important**: Copying objects with identical names but different content to the target\
> platform may cause data overwriting (if you move directories including files with\
> identical names but different content, for instance).

You can use one of the following methods to choose any directory-destination storage\
combination:

**Method 1:**

* Browse the file tree of the source platform and select the directory you want to move.
* Browse the file tree of the target platform and select a destination directory for that\
  directory.
* Click **Add**.

**Or**

**Method 2:**

Click the pencil icon above your selection, enter a source and destination path,\
then click Validation.

For both methods, an overview of your basket is displayed under your source and\
destination file trees.

**Step 2: Configure the task**

1. (Optional) In the Inclusion/Exclusion objects section, enter criteria.

> **Note** : Exclusions take precedence over inclusions. For instance, if *.tmp is excluded and 2007\_*.tmp is included, the 2007\_\*.tmp files will not be deleted.

You can include or exclude files and directories by entering attributes (name, type, size, timestamps, owner attributes, etc.). To do so, you can use standard wildcards:

* \* represents any number of characters.
* ? represents a single character.

> **Example**: To exclude the \*.tmp extension from the task, enter the file extension, then click **Add exclusion.**

2\. Click **Next**.

3\. (Optional) Set your scheduling options:

* Activate scheduling options.
* Select the days of the week when automatic tasks must be started as well as a frequency.
* Set a time at which automatic tasks must be run. You can set a time in hours and minutes, or **set** a time in hours and automatically run the task every 5 minutes.

4. Click **Next**.
5. (Optional) To parallelize jobs, activate Jobs Parallelization. This option enables Miria to accelerate data movements. This is useful for large volumes of data as it allows, for example, the ability to write several files simultaneously on the target file system. By default, the task:
   1. Scans the entire storage to identify the items to be migrated, lists them, and creates a selection of the files.
   2. Cannot trigger the migration job until the selection step is complete. A storage scan can be time-consuming if the number of files to be migrated is very high and / or if the deduplication is activated. Using job parallelization changes the default behavior. The job parallelization value can be changed while the task is running. The new value will be effective on all upcoming jobs associated with the task.
6. When job parallelism is enabled, set a value for:
   1. The maximum number of simultaneous parallel jobs: in general, 2 times the number of Data Movers that make up the platform pool.
   2. At least one of the following thresholds used to trigger a job:
      1. The number of minutes you want before starting a new job.
      2. The maximum volume in GB you want before starting a new job. The default value is 1024 GB.
      3. The maximum number of files you want before starting a new job. The default value is 250,000 files. To set only one of the limits (time, size, or number of files), enter <kbd>0</kbd> in the fields that the synchronization task should ignore. You must define at least one of the three fields.

> **Note**: Each of these limits define when a new job will be started. The selection operation continues in parallel with the copy job until the defined limit is reached again, which in turn will cause a new copy job. This continues until you reach the maximum number of parallel copies allowed. The limitation(s) on file selection should be sufficient so that the job can select enough files, but not too much to prevent the Data Mover from being idle when selecting files. Experience determines the best compromise between these priorities. Three limits are considered during the synchronization job. They are presented in the following order:
>
> * Volume of the selection.
> * Number of files in the selection.
> * Time: even if the selection has not reached the selected volume or number, the copy job is triggered at the end of the set time.

7. (Optional) Select the option that enables you to overwrite targets when files with the same name already exist on the target. When disabled, additional checks are performed, which may impact performance. As a result, objects that already exist on the target storage are not copied and the corresponding objects are not deleted from the source storage. The job will not return an error since the move operation complies with the no-overwrite request. If objects are successfully copied to the target storage but not deleted from the source storage, the job will return an error since the move operation is incomplete.
8. (Optional) Configure custom settings for the job associated with the task:
   1. Enable the **Commands** option.
   2. Enter pre-processing or post-processing commands to customize the job.
9. (Optional) Adjust run options to associate the task with other tasks:
   1. Select a timeframe, a lock and the task that must be run when the task is over.
   2. Enter a maximum number of simultaneous runs. You can also pause the task when the maximum number of simultaneous runs is reached.
10. (Optional) Specify execution constraints to limit the number of objects you want to delete when the task is running. If no constraint is specified, all objects contained in the source directory are moved.

    > **Note**: Constraints apply to the entire task and not per path, which means all the defined criteria must match the selection.

    1. Enable the **Constraints** option.
    2. Click **+ New constraint.**
    3. Select a constraint type among the following constraints:
       1. Last access date.
       2. Last modification date.
       3. Creation date.
       4. File size.
       5. Object type.
    4. Specify how far back in time the operation must go. For instance, if you want to find objects that were created more than 5 months before, select **Older than** as operation, 5 as value and Month as unit.
    5. Click **Add**.
11. Click **Next**, check the summary of your task settings and click **Create** to save the task.

### Database Backup Task

The Miria database backup task backs up the Miria database.\
It is the PostgreSQL database backup task.\
See [Miria administration guide](https://documentation.atempo.com/miria-4.6/admin-guide/home.md) for more details

#### <mark style="color:blue;">Backup the Solution Database: Best Practices and How-to</mark> <a href="#id-7.3-backup-the-solution-database-best-practices-and-how-to" id="id-7.3-backup-the-solution-database-best-practices-and-how-to"></a>

<mark style="color:blue;">**Reminder: Database Backup Best Practices**</mark>

<mark style="color:blue;">Backing up the Data Management solution database is a two step process:</mark>

* <mark style="color:blue;">**Backup.**</mark> <mark style="color:blue;">In the first step, the Data Management solution backs up the PostgreSQL database and stores the result on the server’s local disk. Then the compression is applied if enabled.</mark>\ <mark style="color:blue;">We strongly recommend storing this backup on a different server file system or on another drive through a network mount. If needed, this backup can be used to directly restore the database.</mark>

> <mark style="color:blue;">**Important:**</mark> <mark style="color:blue;">If the database is backed up on a network mount point, you must implement a regular checking process to ensure the mount point is working correctly. If, for any reason, the Data Management solution cannot access the mount point, the backup will not be performed.</mark>

* <mark style="color:blue;">**Archive.**</mark> <mark style="color:blue;">In the second step, the Data Management solution protects the database backup by archiving it to a remote or separate location.</mark>\ <mark style="color:blue;">We strongly recommend defining the store manager associated with this archive in a separate location, such as another server or tape. Storing the archive separately ensures protection against both machine failures and physical incidents (e.g., fire, flood).</mark>\ <mark style="color:blue;">If required, you can restore the database from this archive. In such cases, you must also secure the task report by sending an e-mail that specifies the archive location.</mark>\ <mark style="color:blue;">Examples of archive reports:</mark>
  * <mark style="color:blue;">**On tape.**</mark> <mark style="color:blue;">The e-mail specifies the media and tape position. The restore can then be performed using, for example, the ada\_</mark>*<mark style="color:blue;">pax</mark>* <mark style="color:blue;">command.</mark>

<mark style="color:blue;">**How to Configure a Database Backup**</mark>

1. <mark style="color:blue;">Navigate to the</mark> <mark style="color:blue;">**Tasks**</mark> <mark style="color:blue;">section in the interface navigation pane.</mark>
2. <mark style="color:blue;">Click on</mark> <mark style="color:blue;">**New Task**</mark> <mark style="color:blue;">button on the top right and select</mark> <mark style="color:blue;">**Database backup for PostgreSQL**</mark> <mark style="color:blue;">task in the list.</mark>

> <mark style="color:blue;">**Note:**</mark> <mark style="color:blue;">To configure an incremental or differential backup task, a full backup task must be created first.</mark>

<mark style="color:blue;">**How to Create a Full Database Backup Task**</mark>

* <mark style="color:blue;">Fill the task information (name, comment).</mark>
* <mark style="color:blue;">Choose</mark> <mark style="color:blue;">**Full**</mark> <mark style="color:blue;">as backup type.</mark>
* <mark style="color:blue;">Select the</mark> <mark style="color:blue;">**database dump location**</mark><mark style="color:blue;">.</mark>\ <mark style="color:blue;">This is the path of the directory where PostgreSQL is storing the backup result. Ensure that this directory has enough free space.</mark>
* <mark style="color:blue;">Some options can be selected (compression, delete previous backup).</mark>
* <mark style="color:blue;">Choose if you want the database backup to be archived.</mark>
* <mark style="color:blue;">Schedule the backup execution.</mark>
* <mark style="color:blue;">Add some running options if needed.</mark>
* <mark style="color:blue;">Complete the task creation.</mark>

<mark style="color:blue;">**How to Create an Incremental or Differential Database Backup Task**</mark>

> <mark style="color:blue;">**Note:**</mark> <mark style="color:blue;">This is only available on systems that have already been upgraded to PG17 or later.</mark>

* <mark style="color:blue;">Provide the task details - name, comment.</mark>
* <mark style="color:blue;">Select the backup type -</mark> <mark style="color:blue;">**Differential**</mark> <mark style="color:blue;">or</mark> <mark style="color:blue;">**Incremental**</mark><mark style="color:blue;">.</mark>
* <mark style="color:blue;">Select the</mark> <mark style="color:blue;">**Full**</mark> <mark style="color:blue;">**Database Backup reference task**</mark> <mark style="color:blue;">to use - that is, the full backup task you just created.</mark>
* <mark style="color:blue;">Choose the options for the database backup: archive, compression, and deletion of the previous backup.</mark>
* <mark style="color:blue;">Confirm whether or not to archive database backup.</mark>\ <mark style="color:blue;">- Refer to PostgreSQL documentation for more information.</mark>
* <mark style="color:blue;">Configure the backup task schedule.</mark>
* <mark style="color:blue;">Add optional settings to task configuration</mark>
* <mark style="color:blue;">Finish the task creation.</mark>

<mark style="color:blue;">**How to Check the Storage of Backup Results**</mark>

<mark style="color:blue;">Backup results are stored on the server in the database dump location, with one directory per task execution in the format:</mark>

<mark style="color:blue;">`<YYYMMDDDhhmm>_<hostname>_<port>_<backup type (FULL, INCR, DIFF)>_<compressed or not>_<counter>`</mark>

<mark style="color:blue;">Examples:</mark>

* <mark style="color:blue;">`202508300600_server125_5433_FULL_compressed_13`</mark>
* <mark style="color:blue;">`202509010600_server125_5433_INC_compressed_0`</mark>

> <mark style="color:blue;">**Important**</mark><mark style="color:blue;">:</mark>
>
> * <mark style="color:blue;">Each new full backup removes the previous full backup and all related incremental or differential backups.</mark>

<mark style="color:blue;">**How to Restore a Database Backup**</mark>

1. <mark style="color:blue;">Before launching a database restore, ensure that the following services are stopped: ADA, ADADB.</mark>
2. <mark style="color:blue;">Set system environment variables (.ADA.sh).</mark>
3. <mark style="color:blue;">Navigate to the directory of the backup version to restore.</mark>
4. <mark style="color:blue;">Launch the</mark> <mark style="color:blue;">`recover.py`</mark> <mark style="color:blue;">script, using the Data Management installed python</mark> <mark style="color:violet;">virtual</mark> <mark style="color:blue;">environment.</mark>

<mark style="color:blue;">Example for Linux:</mark>

* <kbd><mark style="color:violet;">$ADA\_HOME/3rdParty/python-venv-miria/bin/python recover.py<mark style="color:violet;"></kbd>

### Maintenance tasks

The maintenance task enables you to delete both the repositories objects that have reached the end of their retention period and their associated jobs and events.\
The preset Maintenance task performs all maintenance operations, except job and event\
deletion, on every first Sunday of the month at 12:00 P.M.; however, you can reconfigure it\
according to your needs or create new maintenance tasks with different parameters.

<table data-header-hidden><thead><tr><th width="229.00006103515625"></th><th></th></tr></thead><tbody><tr><td><strong>Parameter</strong></td><td><strong>Description</strong></td></tr><tr><td><strong>Check running jobs</strong></td><td><p>Click this toggle to process the jobs that have been running for more than 24 hours:</p><ul><li>Jobs on creation or running switch to the <strong>Terminated on error</strong> status.</li><li>Jobs on queue restart or switch to the <strong>Terminated on error</strong> status, if they do not start.</li></ul></td></tr><tr><td><strong>Delete sub-job metadata</strong></td><td>To delete the metadata associated with a sub-job. As the data is, the metadata is linked to an instance and already present in the database. It is recommended that you delete job metadata regularly to optimize database space.</td></tr><tr><td><strong>Delete in recycler</strong></td><td>To delete permanently the repositories folders that you removed from a repository.</td></tr><tr><td><strong>Check expired instances</strong></td><td>To search the database for all expired instances, and create a retention job for each repository. A retention job deletes expired repository instances from the storage and the database.</td></tr><tr><td><strong>Check expired SML instances</strong></td><td>Click this toggle to delete the SML (Storage Manager Layer) archiving instances that are past their retention period.This is only relevant when using the Miria (Messaging) software.</td></tr><tr><td><strong>Delete temporary tables</strong></td><td>To delete some temporary database tables that Miria may create while operating.It is recommended that you delete such tables regularly to optimize database space.</td></tr><tr><td><strong>Delete archiving job details</strong></td><td>To delete details, messages, or alarms that are past their retention period.</td></tr><tr><td><strong>Delete copy / synchronization job details</strong></td><td>To delete details, messages, or alarms that are past their retention period.</td></tr><tr><td><strong>Delete repository tiering job details</strong></td><td>To delete details, messages, or alarms that are past their retention period.</td></tr><tr><td><strong>Delete statistics on jobs</strong></td><td>To delete details, messages, or alarms that are past their retention period.</td></tr><tr><td><strong>Delete jobs</strong></td><td><p>To delete jobs that are past their retention period:</p><ul><li>Click the toggles for the types of jobs (see the list below), that you want to delete.</li><li>Click the <strong>Job and Event retention</strong> toggle.</li><li>Choose how long you want to keep the jobs in the <strong>Job retention</strong> fields. The default value is one month.</li><li>Choose how long you want to keep the events related to the jobs in the <strong>Event retention</strong> field. This value must be less than or equal to the job retention. The default value is one month.</li></ul></td></tr><tr><td><strong>Type of jobs that you can delete</strong></td><td><ul><li>AER collection</li><li>Repository tiering</li><li>Archiving</li><li>Catalog ingest</li><li>Change LTFS volume lock</li><li>Change LTFS volume name</li><li>Copy</li><li>Create directory</li><li>Delete</li><li>Device scan</li><li>Drive diagnostic</li><li>Drive performance</li><li>Drive unmount</li><li>Ejection request</li><li>Library unknown media scan</li><li>Media deletion</li><li>Media duplication</li><li>Media mount</li><li>Media recycling</li><li>Media scratch</li><li>Media verify</li><li>Move</li><li>Rename</li><li>Retention</li><li>Retrieval</li><li>Storage manager integrity check</li><li>Synchronization</li><li>Synchro. digest</li><li>Task</li></ul></td></tr><tr><td><strong>Delete events</strong></td><td>To delete events that are past their retention period:1. Click the toggles for the types of events (see the list below), that you want to delete.2. Click the <strong>Event retention</strong> toggle.3. Choose how long you want to keep the events related to the jobs in the <strong>Event retention</strong> field. The default value is one month.</td></tr><tr><td><strong>Type of events that you can delete</strong></td><td><ul><li>AUDIT TRAIL</li><li>CRITICAL</li><li>DEBUG</li><li>DEBUG STACK</li><li>ERROR</li><li>FATAL</li><li>INFO</li><li>STACK</li><li>STOP/DIE</li><li>SUCCESS</li><li>WARNING</li></ul></td></tr></tbody></table>

### Archive Report Task

The Archive Report task generates a volume report for a selected repository path.

#### Volume Reports

**Configuring the Archive Report Task**

This table describes the Configuration tab fields that you must complete to configure an Archive report task :

<table><thead><tr><th width="157">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Repository name</strong></td><td>Select from the drop-down list a name for the repository.</td></tr><tr><td><strong>Repository path</strong></td><td>Click the browse button to select the absolute path of the selected repository for which the volume report is generated.</td></tr><tr><td><strong>Format</strong></td><td>Select the A4 or the US Letter format.</td></tr><tr><td><strong>Orientation</strong></td><td>Select the portrait or landscape orientation.</td></tr><tr><td><strong>Heading logo</strong></td><td><p>Image displayed in the output file header. Options:</p><ul><li>Leave the field empty: no image is displayed in the PDF.</li><li>Enter <strong>{default}</strong>: displays the default image included in the Miria distribution.</li></ul><p><strong>Or</strong></p><ul><li>Click the <img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FRLpdGIbFCcfLiPpwlIN4%2Fimage.png?alt=media&amp;token=071e0362-df8e-4896-881f-9d7ba631216a" alt="" data-size="line"> browse button to select a custom image from the arborescence. Supported formats: <strong>.jpg, .tif, .png, .gif</strong>.</li></ul></td></tr><tr><td><strong>Header title</strong></td><td><p>String displayed as the report title. You can enter free text and use the following keywords:</p><ul><li><strong>{Job_Number}</strong>,</li><li><strong>{SubJob_Number}</strong>,</li><li><strong>{Archive_Name}</strong>,</li><li><strong>{Archive_Path}</strong>,</li><li><strong>{Archive_Global_Path}</strong>,</li><li><strong>{Archive_Comment}</strong>.</li></ul><p>The PDF displays the associated value for each keyword.</p></td></tr><tr><td><strong>Media details</strong></td><td><p>Defines media information displayed in the report. Valid values:</p><ul><li><strong>None</strong> (default): no media information displayed.</li><li><strong>Media By Job</strong>: displays media names associated with jobs that archived objects into repositories.</li><li><strong>Folders By Media</strong>: displays folders associated with each media defined in the source pane and involved in object archiving.</li></ul></td></tr><tr><td><strong>Metadata</strong></td><td><p>Defines archive metadata displayed in the report. Valid values:</p><ul><li><strong>None</strong> (default): no metadata displayed; the Metadata pane is disabled.</li><li><strong>Job</strong>: displays metadata collected from jobs that archived objects.</li><li><strong>Object</strong>: displays metadata collected from objects or instances.</li><li><strong>Object and Job</strong>: displays metadata collected from both objects/instances and jobs.</li></ul></td></tr><tr><td><strong>Folder details</strong></td><td><p>Defines folder information displayed in the report. Valid values:</p><ul><li><strong>No</strong> (default): displays only the source path and cumulative volume or number of files; the Directory Rules pane is disabled.</li><li><strong>Yes</strong>: displays all folders defined in the source pane recursively, including the volume and number of files for each folder.</li></ul></td></tr></tbody></table>

### Volume Management on Storage Managers Task

The Storage Manager Name field of the Volume management on storage managers task\
displays all the storage managers configured in Miria. You can select either all of them or only one at a time. To run the task on more than one, but not all the storage managers, configure a separate task for each.

The task scans the storage manager. If the Use Volume Level to Trigger Retention Job\
parameter is enabled on the storage manager, the task checks the Task High Water Mark value. If this value is attained or exceeded, the task deletes files on the storage manager until the Low Water Mark value is reached, or until there are no more eligible files to delete.

### XML Ingest Tasks

In contrast to basic automatic repository tasks, which do not permit association of metadata, the XML ingest task uses XML files to run enriched automatic archiving. It reads the XML files in a designated directory and parses them according to the rules set out in an XML schema definition (.xsd file) provided with Miria (ada\_ingest.xsd). The ada\_ingest.xsd file describes the structure to follow to create a valid XML file to be used by Miria.

During the installation of the Miria server, the setup installs the .xsd file and a sample XML ingest file in the Perl subdirectory (e.g., on Windows, they are located in <kbd>C:\Miria\Binary\Bin\Perl\Miria\XML)</kbd>. The sample XML file is <kbd>ADA\_Ingest\_sample.xml.</kbd> You can also get both these files from a browser on the Miria server using this syntax:

<kbd>http\://\<Miria\_server\_name>:/xml/ADA\_Ingest.xsd</kbd>

<kbd>http\:// \<Miria\_server\_name>:/xml/ADA\_Ingest\_sample.xml</kbd>

For more information on the different parameters in the sample file, see the second table below. In addition to the scheduling of repository tasks, the XML ingest task permits you:

* To put specific files in repositories rather than whole directories.
* To attribute metadata to files and folders.
* To put data into different repositories and folders with a single run of the task.

You are responsible for creating the XML files that launch the task. If they are not written directly with the Atempo format, you can translate them to the proper format using a stylesheet that you can request from Atempo Professional Services. It is assumed that all repository objects invoked in the XML files have been created in Miria.

Metadata and repositories must already exist within Miria. Source directories of files for repositories must exist within the file system. This table describes the parameters displayed in the Configuration tab of a XML ingest task.

<table><thead><tr><th width="173">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Configuration</strong></td><td></td></tr><tr><td><strong>Storage platform</strong></td><td>The list displays all storage platforms configured in Miria. Select the one to be used for the task. This is the machine hosting the<br>XML files to be read.<br>If the XML files must run archiving tasks on machines other than this one, the storage platform must have access rights to the other platforms.</td></tr><tr><td><strong>Directory</strong></td><td>Enter the root path which contains the XML file(s) that the XML ingest task must read and parse for the launching of the repository task.<br><strong>This must always be a path, never a file name.</strong><br>You can use the Select button to the right of the field to select the path, which is local to the machine that you specified in the<br>platform. The XML ingest task proces</td></tr><tr><td><strong>Recursive scan</strong></td><td>If you select this box, the XML ingest task also processes all the files having the<kbd>.xml</kbd> extension in the subdirectories of the<br>directory entered in the previous field.</td></tr><tr><td><strong>Translator</strong></td><td><p>Absolute path and name of the translator .xslt file. Choose the file by clicking the Select button. If this field is populated, the<br>XML files are not parsed according to the XML schema definition that Miria provides in the <kbd>ada_ingest.xsd</kbd> file.</p><p>Instead, an <kbd>.xslt</kbd> file translates your XML files into XML files that conform to the <kbd>ada.xsd.</kbd><br>Like for the XML files themselves, it is your responsibility to create and supply the <kbd>.xslt</kbd> translator. On request, Atempo Professional Services can also create it.</p></td></tr><tr><td><strong>XML processing report</strong></td><td><p>Once the XML files have been correctly parsed and read, and the associated tasks have been launched without error, the used XML files in the XML file directory must be moved in a way that prevents rescanning the next time the task is launched. These are the ways in which you can perform this modification:</p><ul><li>If the Processing Report field is not populated, the XML files are simply renamed in their original directory to prevent their rescanning. The file extension is changed from .xml to .out. The next scan ignores the files having the .out extension.</li><li>If the Processing Report field is populated, but the Translator field is not populated, then the XML files are moved from their original XML file directory to the Result Directory specified in the corresponding field. In the new directory, they are also renamed in this way: originalFilename_jobNumber_ ADA.xml.</li><li>If both the XML Processing and the Translator fields are populated, then two file sets are moved into the Result Directory. The first set is as described above, and contains the translated files, named <kbd>originalFilename_ jobNumber_ADA.xml.</kbd> The _ADA suffix indicates their conformity with the ada_ ingest.xsd. The second set contains the original, untranslated XML files, named originalFilename_jobNumber.xml (without the _ADA suffix).<br>Result Directory. Path to which the XML<br>files that have been used in an XML ingest<br>task are to be moved after the task has completed correctly.</li></ul></td></tr><tr><td><strong>XML error report</strong></td><td><p>In some cases the XML ingest task does not<br>complete correctly. This happens when:</p><ul><li>The XML ingest file is malformed.</li><li>The XML ingest file does not conform to the XSD file.</li><li>If you used the Translator, it could be incorrect in itself, or not translate correctly to a form that ada_ingest.xsd<br>can read.</li><li>The files specified for repository do not exist.</li><li>Repositories requested in the XML files do not exist.</li><li>The metadata to be associated with the files put in repositories do not exist.</li><li>The storage platform machine might not have access rights to all the machines that the XML ingest task must scan for files to put in repositories.</li></ul><p>In these cases, the Event logs display error messages to help you analyze the error cause.<br>Additionally, if the XML ingest task rejects the XML files due to malformation or nonconformity, you must modify the rejected<br>XML files in the XML file directory so as they are not rescanned the next time the XML ingest task runs.<br>Perform this modification in either of these two ways :</p><ul><li>If the Error Report field is not populated, the XML files are simply renamed in the original ingest folder.<br>The file extension is changed from .xml to .err.<br>The next scan ignores the files having the .err extension.</li><li>If the Error Report check box is selected, the XML files are moved from their original directory in the XML file directory path to the Reject Directory specified in the corresponding field. In the new directory they are also renamed in this way:<br>originalFilename_jobNumber.xml (without the _ADA suffix).<br>Thus, you can easily rename or return the files to the ingest directory after you have corrected them.<br>Reject Directory. Path to which the XML files that have been used in an XML ingest task are to be moved after the files have been rejected.</li></ul></td></tr></tbody></table>

This table describes the parameters displayed in the sample XML ingest file :

<table><thead><tr><th width="213.66668701171875">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>ada_ingest_v1</strong></td><td>Allows you to configure the ingest.</td></tr><tr><td><strong>StartComboAtIndex</strong></td><td>By default, the ComboBox in Miria goes from 1 to N, while in many client software combos start from 0 to N. The StartComboAtIndex parameter allows to automatically increment the index of a combo box. Example: If you generate an xml by programming from a third party application, you will put index 1 for Value 2 in the metadata associated to the ada_file_ingest or ada_folder_ ingest file. Miria StartComboAtIndex parameter will automatically replace "Value 2" by "Value 1".</td></tr><tr><td><strong>ada_file_ingest</strong></td><td>Allows you to create and configure files.</td></tr><tr><td><strong>ada_folder_ingest</strong></td><td>Allows you to create folders and add metadatas. It is not possible to browse directories in the XML ingest, in this case you must have an ada_file_ingest tag for each file in the directory.</td></tr><tr><td><strong>metadata_folder_action</strong></td><td>Allows you to add, merge or delete metadatas on the existing folder.<br>To have the exact values of this parameter,<br>see the DTD in Binary/Bin/Perl/ADA/XML/ingest.xsd.</td></tr></tbody></table>

### File Storage Container (FSC) to Tape Task

It is now possible to make a copy of the file storage container to tape, saved as PAX files. It can be either full, or incremental. The retention and the schedule are different and do not depend on each other.

{% hint style="warning" %}
**Limitation**: If you run a File Storage Container to Tape Task, your deduplication won't be\
applied.
{% endhint %}

<table><thead><tr><th width="196.3333740234375">Parameter</th><th>Description</th></tr></thead><tbody><tr><td><strong>Task name</strong></td><td></td></tr><tr><td><strong>Source</strong></td><td>Choose an SMC for the FSC Storage Manager Container that manages the PAX files.</td></tr><tr><td><strong>Target</strong></td><td>Select a policy that includes only one single AMM SMC.</td></tr><tr><td><strong>Options</strong></td><td></td></tr><tr><td><strong>Full / Incremental</strong></td><td><p>In the option tab for this task, you can select one of those two ways to process data:</p><ul><li><strong>Full</strong>. The data are duplicated, regardless of whether it already exists on the destination storage.</li><li><strong>Incremental</strong>. The data are duplicated only if they are not already existing on the destination storage.</li></ul></td></tr><tr><td><strong>Jobs parallelization</strong></td><td><p>Another option that is possible to select is the <strong>Jobs parallelization</strong> option:It enables Miria to accelerate data movements. This is useful for large volumes of data as it allows, for example, the ability to write several files simultaneously on the target file system.When job parallelization is enabled, set :</p><ul><li>The <strong>maximum number of simultaneous parallel jobs</strong>: in general, 2 times the number of data movers that make up the platform pool.</li><li>The <strong>maximum volumes in GB you want before starting a new job</strong>. The default value is <strong>1024 GB</strong>.</li><li>The <strong>maximum number of files you want before starting a new job</strong>. The default value is <strong>250,000 files</strong>.</li><li>To set only one of the limits (time, size, or number of files), enter <strong>0</strong> in the field that the Synchronization task should ignore. You must define at least one of the three fields.</li></ul></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/admin-guide/settings/advanced-tasks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
