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

# SAP

### General Overview

This topic introduces SAP's R/3 system and the various tools it offers for backing up and restoring data. It then explains how the backint utility interfaces SAP R/3 with Tina and details its main functions.

#### SAP R/3 System

SAP R/3 is an integrated enterprise management package whose data is stored in a database, such as Oracle, and which includes administration tools, including backup and restore features.

SAP offers its own backup and restore utilities:

* The SAPDBA (SAP DataBase Administration) utility, which includes these three commands:\
  – <kbd>BRBACKUP</kbd> \ <kbd>– BRARCHIVE</kbd> \ <kbd>– BRRESTORE</kbd>
* The <kbd>backint</kbd> interface defined by SAP to manage communication between SAP R/3 and\
  backup tools.

For the most up-to-date information on the platforms supported by SAP R/3, see the [Tina Compatibility Guide](https://documentation.atempo.com/tina-4.9.5/tina-4.9.5-en/version-information/compatibility-guide.md) on the Atempo website.

#### Backint Interface

Atempo developed the <kbd>backint</kbd> interface according to the standards defined by SAP. This\
implementation is certified by SAP.\
The <kbd>backint</kbd> interface lets you control the interaction between SAP R/3 and third-party\
backup tools, such as Tina.\
Tina for R/3 takes the form of an executable called <kbd>backint</kbd>. SAP's backup-restore programs can call this executable via an open interface that lets them communicate with Tina for R/3.

The content and triggering of backups are initiated by SAP. Tina for R/3\
therefore operates in slave mode.\
This diagram illustrates the <kbd>backint</kbd> architecture in relation to SAP R/3:

<figure><img src="https://137371609-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HOI4mniMS7pDfClN83G%2Fuploads%2FbV8gGC25F3U9e4IAdysz%2Fimage.png?alt=media&amp;token=3c54cdb7-1f05-4615-8897-a6cd4083f3fd" alt=""><figcaption></figcaption></figure>

<kbd>backint</kbd> operates exclusively at the file level: whatever function is used, <kbd>backint</kbd> receives the path of a file containing the list of files to process. No analysis is performed at the application level, and <kbd>backint</kbd> is indifferent to the type of database used by SAP R/3.

The backint interface has four main functions:

* **Backup.** The backup function receives a list of files to back up from SAP R/3. Each file present in the list received by <kbd>backint</kbd> is backed up. <kbd>backint</kbd> returns a backup identifier corresponding to the name of the archive in which the file was archived. This identifier is used to designate the files during restore operations. To optimize performance, the list of files to back up can be processed in several parallel sessions. To do this, you must set the desired parallelism index (<kbd>backup\_parallelism\_index</kbd> parameter) as well as the list splitting rules (localization parameter) in a parameter file specific to <kbd>backint</kbd>. For example, you can group files by physical disk to optimize performance based on the database topology. For more information on vendor parameter files, see [<mark style="color:blue;">Vendor Parameter File</mark>](#configuring-the-vendor-parameter-file)<mark style="color:blue;">.</mark> Backup can be performed either "hot" or "cold". The principle is identical for both types of backup. However, during a "hot" backup, <kbd>backint</kbd> synchronizes with SAP R/3 via files specifying its progress in the list, to allow SAP R/3 to take the database tables into account whether they are online or offline.

> **Note**: To perform a "hot" backup, launch the SAP administration tool after setting the Backup\_Device\_Type parameter to Util\_file\_online. This prevents all database tables from entering Begin Backup mode before backint is launched, which could generate too many archive log files.

* **Restore.** The <kbd>restore</kbd> function receives a list of files to restore from SAP R/3. <kbd>backint</kbd> receives a list containing the path of the files to restore from SAP R/3. Each file is preceded by the backup identifier indicating its location corresponding to the archive in the archive folder. Performance can also be optimized during restore operations. If the specified parallelism index (<kbd>restore\_parallelism\_index</kbd> parameter) is different from <kbd>1</kbd>, for example <kbd>N</kbd>, the restore will be split into <kbd>N</kbd> parallel sessions.
* **Inquiry.** The <kbd>inquire</kbd> function receives a list of files to query from SAP R/3.\
  Inquiry works the same way as restore. However, the files found are not restored but listed in the output.
* **Deletion.** The <kbd>delete</kbd> function receives a list of files to delete from SAP R/3.\
  Deletion works the same way as restore. However, the files to delete are not restored but listed in the output.

For more information on these functions, see [<mark style="color:blue;">backint Functions.</mark>](#backint-functions)

#### Identifying Backed-Up Database Objects

To establish a common language between SAP R/3 and the backup tool vendor, a file is identified by two elements:

* The EBID (External Backup ID), or external backup identifier, is created by the external backup tool and takes the form of a character string of up to 32 bytes, but limited to 16 bytes for the SAP R/3 system.
* The file path is defined by SAP R/3.\
  Tina's EBID is based on the date and time and has a single letter as a prefix. It is also the name given to the archive that is created each time the <kbd>backint</kbd> command is called with the <kbd>-f backup.</kbd>\
  The combination of the EBID and the file path is required to identify a unique backed-up database object.

### Configuring the Vendor Parameter File

The vendor parameter file contains vendor-specific information required for backup and restore. Individual parameter files can be assigned to each system and each server.

You must create the vendor parameter file, <kbd>init.utl</kbd>, in the directory\ <kbd>/oracle//dbs.</kbd>

> **Note**: If you do not store the parameter files in this directory, you must create a symbolic link pointing from this shared space to the actual location of the parameter files.

This table describes all the mandatory parameters of the vendor parameter file:

| Parameter            | Description                                                               | Value (example)                        | Status    |
| -------------------- | ------------------------------------------------------------------------- | -------------------------------------- | --------- |
| **backint\_product** | Specifies the database you want to back up and restore.                   | oracle                                 | Mandatory |
| **home**             | Defines the Tina installation directory.                                  | /opt/backint/atempo/TimeNavigator/tina | Mandatory |
| **catalog**          | Specifies the catalog to which *backint* is connected for backup/restore. | cata\_1                                | Mandatory |
| **tmp\_dir**         | Defines the absolute path used to temporarily store the file lists.       | /var/tmp                               | Mandatory |

**Example**. Vendor parameter file init.utl

```plaintext
># <nom_parametre> <valeur_parametre>
backint_product oracle
home /opt/backint/atempo/TimeNavigator/tina
catalog cata_1
tmp_dir /var/tmp
```

The <kbd>backint</kbd>/<kbd>BRARCHIVE</kbd> program automatically retrieves other parameters at runtime. For example:

```plaintext
Requested function backup
Backup type file (offline)
Number of files 28
```

For more information on the vendor parameter file and the list of all supported parameters, see [<mark style="color:blue;">Vendor Parameter File.</mark>](#configuring-the-vendor-parameter-file)

**Maintaining the Vendor Parameter File**

The <kbd>init.utl</kbd> parameter file is located in the <kbd>/oracle//dbs</kbd> directory. Set the following parameters:

* <kbd>backup\_dev\_type = util\_file</kbd>
* <kbd>util\_par\_file = init.utl</kbd>

**Owner and Permissions of Oracle Files and Directories**

This table describes the permissions you must set for Oracle files and directories:

| Directory / File                          | Owner     | Group  | Permission       |
| ----------------------------------------- | --------- | ------ | ---------------- |
| **/oracle/\<SID>/saparch**                | ora\<sid> | dba    | -rwxrwxr-x (775) |
| **/oracle/\<SID>/sapbackup**              | ora\<sid> | dba    | -rwxrwxr-x (775) |
| **/oracle/\<SID>/sapcheck**               | ora\<sid> | dba    | -rwxrwxr-x (775) |
| **/oracle/\<SID>/saparch/arch\<SID>.log** | ora\<sid> | sapsys | -rw-rw---- (660) |
| **(1) /oracle/\<SID>/sapbackup/TINA**     | ora\<sid> | dba    | -rwxrwxr-x (775) |

(1) - Create the TINA directory as user ora:

<kbd>mkdir TINA</kbd>

### backint Functions

This topic details the backup, restore, inquiry, and delete functions of the backint command. It also explains how to view backed-up data in the Tina for R/3 Restore and Archiving interface.

#### Backup

For the backup function, backup, the input file contains one or more files to be used by backint. Each line begins with the file name in the file system:

```
<nom_fichier>
<nom_fichier>
<nom_fichier>
```

This information about the type of entry is used for a possible restore. Files that do not exist or are unreadable are treated as errors.

For each entry in the input file, a corresponding entry is returned in the output file. This entry indicates the success or failure of the backup:

```
#SAVED <id_sauvegarde_externe> <nom_fichier>
#ERROR <nom_fichier>
```

**Example 1. Backing Up Datafiles**\
In this example, the <kbd>backint</kbd> command performs the backup <kbd>(-f backup)</kbd> of datafiles (<kbd>BI\_CALLER=BRBACKUP</kbd>) managed by SAP R3.

The vendor parameter file is called <kbd>backint\_ora</kbd> and contains information about the backup:

```
sapadm@qasuse11x64:~/tests> cat backint_ora
backint_product oracle
home "/DT/DEV/dev/rks/admin/klondike"
catalog klondike
tmp_dir /SAP/tmp
stop_on_error 0
folder sap.david6
archivelog_folder sap.david7
backup_parallelism_index 1
restore_parallelism_index 1
app_trace_debug 1
sapadm@qasuse11x64:~/tests>
```

SAP R3 creates an input file (<kbd>backint\_i\_4\_files</kbd>) containing all the paths of the files to back up, retrieves the list of the four files to back up from the input file, performs the backup, and sends to standard output as many messages of the type #<kbd>SAVED S20160218\_151803 "/home/.../file</kbd>" as there are files to back up.

S20160218\_151803 is both a backup identifier used by SAP R3 and a Tina for R/3 archive in which backint performed the backup. The backint command indicates the result of the backup in the output file (<kbd>backint\_ o\_4\_files</kbd>) and shows that the four files were backed up, with an error on one path (#ERROR /DT/DEV/dev/rks/admin/klondike/Lib/libtina\_d401.so). SAP R3 stores backint's response, which can be used for a possible restore.

```
sapadm@qasuse11x64:~/tests/back> export BI_CALLER=BRBACKUP
sapadm@qasuse11x64:~/tests/back> backint -u david6
-p /home/sapadm/tests/backint_ora -f backup -i backint_i_4_files
-o backint_o_4_files
sapadm@qasuse11x64:~/tests/back> echo $?
2
sapadm@qasuse11x64:~/tests/back> more backint_i_4_files backint_o_4_files
:::::::::::::::::
backint_i_4_files
:::::::::::::::::
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
:::::::::::::::::
backint_o_4_files
:::::::::::::::::
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Thu Feb 18 15:18:02 2016
Requested function : backup
Backup type : file (offline)
Number of files : 4
Parallelism : 1
#SAVED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
#SAVED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#ERROR /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
#SAVED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
Date end : Thu Feb 18 15:18:17 2016
Total duration : 00:00:15
sapadm@qasuse11x64:~/tests/back>
```

**Example 2. Backing Up Logs**\
In this example, the <kbd>backint</kbd> command performs the backup (-f backup) of logs (<kbd>BI\_ CALLER=BRARCHIVE</kbd>) managed by SAP R3. The vendor parameter file is called backint\_ora and contains information about the backup.

```
sapadm@qasuse11x64:~/tests/back> export BI_CALLER=BRARCHIVE
sapadm@qasuse11x64:~/tests/back> backint -u david6
-p /home/sapadm/tests/backint_ora -f backup -i backint_i_4_files
-o backint_o_4_files
sapadm@qasuse11x64:~/tests/back> echo $?
2
sapadm@qasuse11x64:~/tests/back> more backint_i_4_files backint_o_4_files
:::::::::::::::::
backint_i_4_files
:::::::::::::::::
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
/DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
:::::::::::::::::
backint_o_4_files
:::::::::::::::::
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Thu Feb 18 15:36:29 2016
Requested function : backup
Backup type : file (offline)
Number of files : 4
Parallelism : 1
#SAVED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
#SAVED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#ERROR /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
#SAVED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
Date end : Thu Feb 18 15:36:40 2016
Total duration : 00:00:11
sapadm@qasuse11x64:~/tests/back>

```

#### Restore

When a restore is performed, the backint command is supplied with more\
information than for the backup function because for the restore function, restore, you must select a specific backup from the backup server. As a result, not only must the file name be provided, but also the external backup ID that designates the selected backup. If the #NULL keyword is specified instead of the external backup ID, the most recent backup available for that file name is selected. During restore, files are created by backint.

If you want to restore the content to a different file name, you can add the absolute name of a destination after the external backup ID and the file name. A specific backup is defined by its external backup ID, as well as by its name in the file system. If the #NULL keyword is specified, the most recent version of the object, identified by the file name, is retrieved. Each line in the input file therefore has the following format:

```
#NULL <nom_fichier> [<nom_dest>]
<id_sauvegarde_externe> <nom_fichier> [<nom_dest>]
```

For each object in the input file, the result is returned on a corresponding line in the output file. A successful restore is indicated by the #RESTORED keyword; an error by the #ERROR keyword. If the selected backed-up object cannot be found on the backup server, a message beginning with the #NOTFOUND keyword is returned.

```
#RESTORED <id_sauvegarde_externe> <nom_fichier>
#ERROR <nom_fichier>
#NOTFOUND <nom_fichier>
```

**Example 1**. Restoring Datafiles to Their Original Location

In this example, the backint command performs the restore (-f restore) of datafiles managed by SAP R3, to their original location. The vendor parameter file is called backint\_par and contains information about the restore. SAP R3 creates an input file (backint\_i\_4\_files\_origin) containing all the paths of the files to restore, retrieves the list of the four files to restore from the input file, performs the restore, and sends to the output file as many messages of the type #RESTORED S20160218\_151803 "/home/.../file" as there are files to restore.

S20160218\_151803 is both a backup identifier used by SAP R3 and a Tina for R/3 archive in which backint performed the backup used for the restore. The backint command indicates the result of the restore in the output file (backint\_o\_4\_files\_origin) and shows that the four files were restored, with an error on one path (#NOTFOUND /DT/DEV/dev/rks/admin/klondike/Lib/libtina\_d401.so).

```
sapadm@qasuse11x64:~/tests/rest> backint -u david6
-p /home/sapadm/tests/backint_ora -f restore -i backint_i_4_files_origin
-o backint_o_4_files_origin
sapadm@qasuse11x64:~/tests/rest> echo $?
2
sapadm@qasuse11x64:~/tests/rest> more backint_i_4_files_origin backint_o_4_
files_origin
::::::::::::::::::::::::
backint_i_4_files_origin
::::::::::::::::::::::::
S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
::::::::::::::::::::::::
backint_o_4_files_origin
::::::::::::::::::::::::
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Thu Feb 18 16:15:23 2016
Requested function : restore
Number of files : 4
Parallelism : 1
#RESTORED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cu401.so
#RESTORED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cnx401.so
#RESTORED S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#NOTFOUND /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
Date end : Thu Feb 18 16:15:30 2016
Total duration : 00:00:07
sapadm@qasuse11x64:~/tests/rest>
```

**Example 2.** Restoring the Latest Backup to a Different Location

In this example, the backint command performs the restore (-f restore) of the latest backup to a directory other than the original one (/home/sapadm/tests/rest), using the #NULL keyword to restore the most recent backup. The backint command indicates the result of the restore in the output file (backint\_o\_4\_files\_dir) and shows that the four files were restored, with an error on one path (#NOTFOUND /DT/DEV/dev/rks/admin/klondike/Lib/libtina\_d401.so).

```
sapadm@qasuse11x64:~/tests/rest> backint -u david6
-p /home/sapadm/tests/backint_ora -f restore -i backint_i_4_files_dir
-o backint_o_4_files_dir
sapadm@qasuse11x64:~/tests/rest> echo $?
2
sapadm@qasuse11x64:~/tests/rest> more backint_i_4_files_dir backint_o_4_
files_dir
:::::::::::::::::::::
backint_i_4_files_dir
:::::::::::::::::::::
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
/home/sapadm/tests/rest
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
/home/sapadm/tests/rest
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
/home/sapadm/tests/rest
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
/home/sapadm/tests/rest
:::::::::::::::::::::
backint_o_4_files_dir
:::::::::::::::::::::
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Thu Feb 18 16:38:39 2016
Requested function : restore
Number of files : 4
Parallelism : 1
#RESTORED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cnx401.so
#RESTORED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cu401.so
#RESTORED A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#NOTFOUND /DT/DEV/dev/rks/admin/klondike/Lib/libtina_d401.so
Date end : Thu Feb 18 16:38:45 2016
Total duration : 00:00:06
sapadm@qasuse11x64:~/tests/rest>
```

#### Inquiry

The inquiry function, inquire, is used to obtain information from the backup\
server. The input file contains information about the objects for which an\
inquiry has been performed. The input file contains several lines in one of the following formats:

```
#NULL <id_sauvegarde_externe>
#NULL <nom_fichier>
<id_sauvegarde_externe> <nom_fichier>
```

For each object in the input file, the result is returned on at least one corresponding\
line in the output file. If an inquiry concerns several objects, a line is written for each object in the output file, sorted by backup creation date (most recent backup first). Inquiry with the #NULL keyword\
lists all archives available for the specified user ID.

* A database object found on the backup server is indicated by the\
  \#BACKUP keyword.
* If no database object is found on the backup server, a\
  message beginning with the #NOTFOUND keyword is returned.
* Errors are indicated by the #ERROR keyword.

```
#BACKUP <id_sauvegarde_externe> <nom_fichier>
#ERROR [<id_sauvegarde_externe>] [<nom_fichier>]
#NOTFOUND [<id_sauvegarde_externe>] [<nom_fichier>]
```

**Example 1.** Inquiry with the #NULL Keyword\
In this example, the backint command queries the backup server (-f inquire)\
with the #NULL keyword to display all archives.

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire -i backint_i_null
-o backint_o_null
sapadm@qasuse11x64:~/tests/inq> echo $?
0
sapadm@qasuse11x64:~/tests/inq> more backint_i_null backint_o_null
::::::::::::::
backint_i_null
::::::::::::::
#SOFTWAREID "backint 1.06" "hdb test"
#NULL
::::::::::::::
backint_o_null
::::::::::::::
#SOFTWAREID "backint 1.06" "Time Navigator Enterprise Edition 4.4.0.0
B11 P5406 R75394, backint Sap 4.4.11"
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 13:53:43 2016
Requested function : inquire
Number of inputs : 1
#BACKUP S20160218_170342
#BACKUP S20160218_165822
#BACKUP A20160218_153629
#BACKUP S20160218_151803
Date end : Wed Feb 24 13:53:43 2016
Total duration : 00:00:00
Number of outputs : 4
sapadm@qasuse11x64:~/tests/inq>

```

**Example 2.** Inquiry with the External Backup ID\
In this example, the backint command queries the backup server (-f inquire)\
with the external backup ID of a file (A20160218\_153629) to display the contents of an archive (the input file is stdin).

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire
A20160218_153629
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:02:59 2016
Requested function : inquire
Number of inputs : 1
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cnx401.so
Date end : Wed Feb 24 14:03:00 2016
Total duration : 00:00:01
Number of outputs : 3
sapadm@qasuse11x64:~/tests/inq>
```

**Example 3.** Inquiry with the #NULL Keyword and an Object Path

In this example, the backint command queries the backup server (-f inquire)\
with the #NULL keyword, specifying the path of an object, to display all backups of a file (the output file is stdout).

```
sapadm@qasuse11x64:~/tests/inq> more backint_i_all_cu
#SOFTWAREID "backint 1.06" "hdb test"
#NULL "/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so"
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire -i backint_i_all_cu
#SOFTWAREID "backint 1.06" "Time Navigator Enterprise Edition 4.4.0.0
B11 P5406 R75394, backint Sap 4.4.11"
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:10:25 2016
Requested function : inquire
Number of inputs : 1
#BACKUP S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP S20160218_165822 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
Date end : Wed Feb 24 14:10:25 2016
Total duration : 00:00:00
Number of outputs : 4
sapadm@qasuse11x64:~/tests/inq>

```

**Example 4.** Inquiry for a Specific Backup\
In this example, the backint command queries the backup server (-f inquire) by\
specifying a specific backup to confirm its existence.

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire -i backint_i_specific
-o backint_o_specific
sapadm@qasuse11x64:~/tests/inq> echo $?
0
sapadm@qasuse11x64:~/tests/inq> more backint_i_specific backint_o_specific
::::::::::::::::::
backint_i_specific
::::::::::::::::::
#SOFTWAREID "backint 1.06" "hdb test"
A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
::::::::::::::::::
backint_o_specific
::::::::::::::::::
#SOFTWAREID "backint 1.06" "Time Navigator Enterprise Edition 4.4.0.0
B11 P5406 R75394, backint Sap 4.4.11"
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:21:37 2016
Requested function : inquire
Number of inputs : 1
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
Date end : Wed Feb 24 14:21:37 2016
Total duration : 00:00:00
Number of outputs : 1
sapadm@qasuse11x64:~/tests/inq>

```

**Example 5.** Inquiry in Interactive Mode

In this example, the backint command queries the backup server (-f inquire) using\
interactive mode. The input file is replaced by standard input stdin, and the\
output file by standard output stdout. Use ctrl-d to stop stdin.

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire
A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
A20160218_153629 "/DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so"
A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.xx
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:27:52 2016
Requested function : inquire
Number of inputs : 3
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#NOTFOUND A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cu401.xx
Date end : Wed Feb 24 14:27:52 2016
Total duration : 00:00:00
Number of outputs : 3
sapadm@qasuse11x64:~/tests/inq> echo $?
0
sapadm@qasuse11x64:~/tests/inq>
```

#### Deletion

The delete function, delete, is used to clean up incomplete or erroneous backups. The input file contains information about the backup to delete in the following format:

* \#EBID \<id\_sauvegarde\_externe> \<nom\_fichier>: deletes a file.
* \#EBID \<id\_sauvegarde\_externe>: deletes an empty archive.
* \#NULL: deletes all empty archives.

For each object in the input file, the result is returned on a corresponding line in the output file.

* A successful deletion is indicated by the #DELETED keyword.
* An error is indicated by the #ERROR keyword.
* If the requested backup object cannot be found, a message beginning with the #NOTFOUND keyword is returned.
* The #NOTDELETED keyword indicates that the backup server refused the deletion.

```
#DELETED <id_sauvegarde_externe> <nom_fichier>
#NOTDELETED <id_sauvegarde_externe> <nom_fichier>
#ERROR <id_sauvegarde_externe> <nom_fichier>
#NOTFOUND <id_sauvegarde_externe> <nom_fichier>
```

**Example 1**. Deleting a File Instance in Interactive Mode

In this example, the backint command deletes a file instance in the Tina\
catalog (-f delete) using interactive mode.

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:41:07 2016
Requested function : inquire
Number of inputs : 1
#BACKUP S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP S20160218_165822 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
Date end : Wed Feb 24 14:41:07 2016
Total duration : 00:00:00
Number of outputs : 4
sapadm@qasuse11x64:~/tests/inq> backint -u david6 -p
/home/sapadm/tests/backint_ora -f delete
#EBID S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:42:42 2016
Requested function : delete
Number of inputs : 1
#DELETED S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
Date end : Wed Feb 24 14:42:42 2016
Total duration : 00:00:00
Number of outputs : 1
sapadm@qasuse11x64:~/tests/inq> backint -u david6 -p
/home/sapadm/tests/backint_ora -f inquire
#NULL /DT/DEV/dev/rks/admin/klondike/Lib/libtina_dtm401.so
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:43:48 2016
Requested function : inquire
Number of inputs : 1
#BACKUP S20160218_165822 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP A20160218_153629 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
#BACKUP S20160218_151803 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
dtm401.so
Date end : Wed Feb 24 14:43:48 2016
Total duration : 00:00:00
Number of outputs : 3
sapadm@qasuse11x64:~/tests/inq>
```

**Example 2.** Failure to Delete a Non-Empty Archive

In this example, the backint command deletes an archive in the Tina catalog (-\
f delete) using interactive mode, but the deletion fails because the archive is not empty (#NOTDELETED S20160218\_170342).

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f delete
#EBID S20160218_170342
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archive#NOTDELETED S20160218_170342
Date end : Wed Feb 24 14:52:01 2016
Total duration : 00:00:00
Number of outputs : 1
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f inquire
#EBID S20160218_170342
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:54:28 2016
Requested function : inquire
Number of inputs : 1
#BACKUP S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#BACKUP S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cnx401.so
Date end : Wed Feb 24 14:54:28 2016
Total duration : 00:00:00
Number of outputs : 2
sapadm@qasuse11x64:~/tests/inq>log_folder : sap.david7
Date begin : Wed Feb 24 14:52:01 2016
Requested function : delete
Number of inputs : 1
```

**Example 3.** Deleting All Empty Archives

In this example, the <kbd>backint</kbd> command deletes all empty archives in the Tina catalog (<kbd>-f delete</kbd>) using interactive mode.

```
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f delete
#EBID S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cu401.so
#EBID S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_cnx401.so
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:57:03 2016
Requested function : delete
Number of inputs : 2
#DELETED S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cu401.so
#DELETED S20160218_170342 /DT/DEV/dev/rks/admin/klondike/Lib/libtina_
cnx401.so
Date end : Wed Feb 24 14:57:03 2016
Total duration : 00:00:00
Number of outputs : 2
sapadm@qasuse11x64:~/tests/inq> backint -u david6
-p /home/sapadm/tests/backint_ora -f delete
#NULL
Time Navigator Enterprise Edition 4.4.0.0 B11 P5406 R75394, backint Sap
4.4.11
backint_product : oracle
home : /DT/DEV/dev/rks/admin/klondike
catalog : klondike
folder : sap.david6
archivelog_folder : sap.david7
Date begin : Wed Feb 24 14:57:38 2016
Requested function : delete
Number of inputs : 1
#DELETED S20160218_170342
Date end : Wed Feb 24 14:57:38 2016
Total duration : 00:00:00
Number of outputs : 1
sapadm@qasuse11x64:~/tests/inq>
```


---

# 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/sap.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.
