> 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/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/catalog.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Catalog

## Restore a catalog

The restore procedure varies depending on how you used the Catalog application to back up the current catalog, another catalog on the same server, or a remote catalog.

Restoring the catalog is done in two steps:

* Restore the catalog file
* Backed up and recreate the catalog.

The scope of the restore depends on the configuration of the Catalog application.

### Closing cartridges during catalog restore

If platform backups were performed between the last catalog backup and the moment the restore takes place, this data will not be known to the restored catalog since it does not exist in the backup.

However, this data is indeed written to cartridges and can be retrieved using the tina\_cart command. If you do not want to erase this data during future backups, you must close the catalog's cartridges.

To do this, you must add the <kbd>-close\_cart</kbd> option when running the tina\_init command in the various cases presented below.

{% hint style="info" %}
The -close\_cart option closes all cartridges in the catalog. You will have to reopen them manually if you want to reuse them.\
Also, if all cartridges are closed in the catalog, make sure that enough "spare" cartridges are available in your library to handle upcoming backups.
{% endhint %}

## Restore a catalog using the boot catalog

This method only applies when the Catalog application is used to\
back up the current catalog (i.e., <mark style="color:blue;">Catalog A in Possible Configurations of the Catalog application</mark>), since this is the only case where a boot catalog is created.

#### Restore a catalog using the boot catalog

* To restore your catalog and recreate it, enter this command at the\
  command line: <kbd>tina\_init -boot $TINA\_HOME/Data.\<catalog\_name>/Boot/bootxxxx\_\<catalog\_ name>.cod.</kbd>

{% hint style="info" %}
If you are using a library that can read barcodes, the restore process automatically includes a reinitialization by barcode reading. If your library does not support barcodes, the -force\_reinit option lets you perform a reinitialization by label reading: tina\_init -boot $TINA\_HOME/Data.\<catalog\_name>/Boot/bootxxxx\_\<catalog\_ name>.cod -force\_reinit This option is only valid for libraries that do not read barcodes, and it triggers a reinitialization of all non-barcode libraries associated with the catalog you are restoring.
{% endhint %}

**Examples of the tina\_init command**

This table lists examples of using the <kbd>tina\_init</kbd> command to restore a catalog using the boot catalog:

<table><thead><tr><th>Use case</th><th width="153">System</th><th>Command</th></tr></thead><tbody><tr><td><strong>Restore the democat catalog</strong></td><td>Windows</td><td><code>tina_init -boot \%TINA_HOME%\Data.democat\Boot\boot0023_democat.cod</code></td></tr><tr><td></td><td>macOS / Unix</td><td><code>tina_init -boot $TINA_HOME/Data.democat/Boot/boot0023_democat.cod</code></td></tr><tr><td><strong>democat catalog installed in Tina Library Sharing Manager</strong></td><td>Windows</td><td><code>tina_init -boot \%TINA_HOME%\Data.democat\Boot\boot0023_democat.cod -catalog boot_democat</code></td></tr><tr><td></td><td>macOS / Unix</td><td><code>tina_init -boot $TINA_HOME/Data.democat/Boot/boot0023_democat.cod -catalog boot_democat</code></td></tr><tr><td><strong>Restore + reinitialize without reading barcodes</strong></td><td>Windows</td><td><code>tina_init -boot \%TINA_HOME%\Data.democat\Boot\boot0023_democat.cod -force_reinit</code></td></tr><tr><td></td><td>macOS / Unix</td><td><code>tina_init -boot $TINA_HOME/Data.democat/Boot/boot0023_democat.cod -force_reinit</code></td></tr><tr><td><strong>Restore + close all cartridges</strong></td><td>Windows</td><td><code>tina_init -boot \%TINA_HOME%\Data.democat\Boot\boot0023_democat.cod -close_cart</code></td></tr><tr><td></td><td>macOS / Unix</td><td><code>tina_init -boot $TINA_HOME/Data.democat/Boot/boot0023_democat.cod -close_cart</code></td></tr></tbody></table>

**Restore a catalog with the boot catalog from a secondary set**

If the primary media set is not available to restore the catalog and you need to use a set containing a copy, use the following procedure:

1. Restore the boot catalog under the name boot\_tina: tina\_init -file $TINA\_ HOME/Data.\<catalog\_name>/Boot/bootxxxx\_\<catalog\_name>.cod -catalog boot\_ This step creates a Data.boot\_tina directory that you will need to delete once the catalog restore is complete.

   > **Note**: If you do not add the <kbd>-catalog boot\_tina</kbd> element, the name of the created catalog will be the original one.
2. Start the Tina service or daemon.
3. Open the Web Administration for the boot\_tina catalog.
4. In the Web Administration, select Storage Libraries Launch a library barcode reinitialization.
5. Open the Restore and Archiving interface for the Catalog application. Restore the catalog backup file you want.
6. Stop the Tina service or run the tina\_stop command to stop the daemon.
7. Delete the Data.boot\_tina directory and the four lines concerning boot\_tina in the file corresponding to your operating system:
   1. **Windows**. %TINA\_HOME%\Conf\catalogs.txt
   2. **macOS - Unix.** $TINA\_HOME/Conf/catalogs
8. Run a <kbd>tina\_init -file $TINA\_HOME/\<restored\_catalog\_file></kbd> to recreate the catalog.
9. Make sure to remove all references to the boot\_tina catalog that may be present in the Web Administration files.
   1. If you are using a library that can read barcodes, the restore process automatically includes a reinitialization by barcode reading.
   2. If your library does not support barcodes, the <kbd>-force\_reinit</kbd> option lets you perform a reinitialization by label reading: <kbd>tina\_init -file $TINA\_HOME/\<restored\_catalog\_file> -force\_reinit.</kbd> This option is only valid for libraries that do not read barcodes, and it triggers a reinitialization of all non-barcode libraries associated with the catalog you are restoring.

## Restore another catalog

In this case, the value of the <kbd>TINA\_SDB\_RECOVER</kbd> environment variable determines whether the restore includes rebuilding the catalog. This only happens if the environment variable is set to Yes (default value).

**Restore another catalog on the same server**

1. Depending on your operating system, launch the Tina classic administration console.
   1. **Windows**. Click Start All Programs Tina Administration.\
      If needed, select the Run as administrator option from the context\
      menu. You can also run the tina\_adm command to launch the Tina classic administration console.
   2. **macOS**. Open a terminal and enter the administrator password using the sudo –s command. Run the tina\_adm command.
   3. **Unix**. Open a shell window and become root using the su or sudo -s command. Run the tina\_adm command.

{% hint style="info" %}

* Unix and macOS. You must specify the full path of the Tina commands you enter: $TINA\_HOME/Bin/tina\_adm where $TINA\_HOME is the Tina installation directory. Example. /usr/Atempo/TimeNavigator/tina/Bin/tina\_adm
* For more information on the tina\_adm command, see the Command Line Interface Documentation.
  {% endhint %}

The Tina classic administration console opens.

2. In the administration console, right-click the icon of the Catalog application for the catalog to restore and select Restore and Archiving.
3. In the Restore and Archiving interface, open the file tree to the file representing your catalog.
4. Right-click the catalog file, then select Information.
5. Select the version you want to restore, then click Synchronize.
6. If the value of <kbd>TINA\_SDB\_RECOVER</kbd> is **Yes**, Tina restores the catalog file and rebuilds it. No further action is required.
7. If the value of <kbd>TINA\_SDB\_RECOVER</kbd> is **No**, Tina restores the catalog file. Once the restore is complete, enter, at the command line: tina\_init -file \<restored\_catalog\_path> Where: restored\_catalog\_path corresponds to the value of the TINA\_SDB\_RESTORE\_PATH environment variable, for example, /home/tina/Bin/) followed by \<catalog\_name>.cod, for example, newdoc.cod). In this case, the result would be /home/tina/Bin/newdoc.cod.

> **Note**: If you use a key that does not include the catalog name, you must add the name of the restored catalog as a parameter in the tina\_init command: tina\_init -file \<restored\_catalog\_path> -catalog \<restored\_catalog\_ name>

## Restore the catalog configuration

When restoring the Adm or Conf configuration directories, Tina creates Adm.restored and Conf.restored directories. The procedure for restoring configuration files is similar to that for a file system backup.

When you have lost the catalog backup work (which includes the Conf directory, notably containing the VLS configurations), you can restore the catalog configuration from the Conf directory using the zipped archive in sidf format named Confxxxx\_\<catalog\_name>.tn\_zip.sidf, for example, Conf0025\_catatest.tn\_ zip.sidf).

This archive is copied to the following locations:

* Always at the same location as the boot catalog:
  * **Windows**. %TINA\_HOME%\Data.\<catalog\_name>\Boot
  * **Unix**. and **macOS**. $TINA\_HOME/Data.\<catalog\_name>/Boot
* At the location specified on disk, if you have set the TINA\_SDB\_SAVE\_ PATH variable.
* At the specified copy location, if you have set the TINA\_SDB\_MIRROR\_ PATH variable.

This archive contains the full path of the Conf directory. Atempo recommends restoring this sidf archive to another directory, then choosing the files you want to restore.

* **Windows**. The tina\_zip -x Conf0025\_catatest.tn\_zip.sidf -C:\tmp\restConf command restores the Conf directory to the C:\tmp\restConf%$TINA\_HOME% directory
* **Unix**. and macOS. The tina\_zip -x Conf0025\_catatest.tn\_zip.sidf -C /tmp/restConf command restores the Conf directory to the /tmp/restConf/$TINA\_HOME directory

## Resynchronize the Virtual Library Migration application

If you use the Virtual Library Migration feature, you must resynchronize it with the catalog after a catalog restore. Otherwise, you may encounter inconsistencies at the backup level.

**Resynchronize the Virtual Library Migration application after a catalog**\
**restore**

> **Note**: Before performing this task, see Restore the catalog configuration.

1. Rename the following directory with a \*.old extension:

   **Windows**. %TINA\_HOME%\Conf\Vlsa\catalog\_name

   **macOS - Unix**. $TINA\_HOME/Conf/Vlsa/catalog\_name
2. Move the directory:
   1. **Windows**. %TINA\_HOME%\Conf.restored\Vlsa\catalog\_name
   2. **macOS- Unix**. $TINA\_HOME/Conf.restored/Vlsa/catalog\_name into this directory
   3. **Windows**. %TINA\_HOME%\Conf\Vlsa
   4. **macOS - Unix.** $TINA\_HOME/Conf/Vlsa

## Steps to restore a catalog

1. In the left side menu, click **"Restore"** then **"Catalog"**.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F4HELBVcZceTfTvSUV4R7%2Fimage.png?alt=media&amp;token=6c19b14b-ac94-4ebc-b1ed-c89c3bf8e764" alt=""><figcaption></figcaption></figure>
2. On the following interface, enter the name of the agent to restore and enter your username and password.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2F27QNIjNT6kouoa8w4uxG%2Fimage.png?alt=media&amp;token=3b9283b8-b20a-44dc-973e-26dca1214a99" alt=""><figcaption></figcaption></figure>
3. Then specify whether you want to perform a **standard restore** or a **cross restore.** In the case of a cross restore, enter the restore source as well as the destination as shown in this figure.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FIMcGooaA4O1FfrW8CTEZ%2Fimage.png?alt=media&amp;token=9eb3a3e1-d630-4649-9606-65e7029c5214" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If you have only one Tina agent, you obviously will not be able to perform a cross restore.
{% endhint %}

4. Then browse the catalog objects to restore.

   <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FXrhi1vENILbT1u6bL58A%2Fimage.png?alt=media&amp;token=a81f9ff9-7ac1-4936-800a-fb4444133d1a" alt=""><figcaption></figcaption></figure>
5. In the **restore options,** specify what to do when:
   1. A file already exists
   2. An error occurs
   3. A cartridge is offline

      <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FrrfeAdCPRvWQeN3HBLnK%2Fimage.png?alt=media&amp;token=db117914-240c-40e6-8670-46b34b1c59da" alt=""><figcaption></figcaption></figure>
6. In the **advanced options**, specify the restore level and check or uncheck the following options:
   1. Restore all versions.
   2. Do not restore security attributes.

      <figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FIQvShe3456px2mXoSOQW%2Fimage.png?alt=media&amp;token=f6c9d9b0-2178-4a63-8a70-8bc60aada071" alt=""><figcaption></figcaption></figure>
7. Finally, finish by clicking **"Start restore".**


---

# 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/tina-4.9.5/tina-4.9.5-en/administration-guide/restore/catalog.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.
