- add dab backup diagram

Kaimbacher 2023-04-20 15:02:04 +02:00
parent fc6ae6bd51
commit 25c5bcb02b
3 changed files with 238 additions and 12332 deletions

@ -27,7 +27,9 @@ How TO:
## Examples ## Examples
### **1. Restoring a single file from a selection of existing versions** ### **1. Fixity check fails for one file:**
**Restoring a single file from a selection of existing versions**
```bash ```bash
Protect> restore /etc/host -pick -inactive /tmp/restored/ Protect> restore /etc/host -pick -inactive /tmp/restored/
@ -46,15 +48,15 @@ Protect> restore /etc/host -pick -inactive /tmp/restored/
<td> <td>
Subsequently, the following result is to be output. The column A/I means: Subsequently, the following result is to be output. The column A/I means:
<br> <br>
A = letzte gültige Version (aktiv) A = last valid version (active)
<br> <br>
I = Inaktive Versionen, die nicht mehr auf der Produktiv-Platte stehen I = Inactive versions that are no longer on the productive disk
</td> </td>
</tr> </tr>
<tr> <tr>
<td> <td>
You select the required version by entering the selection number at the front. You select the required version by entering the selection number at the front.
In the example, the older of two versions is to be restored werden. In the example, the older of two versions (2) is to be restored.
</td> </td>
</tr> </tr>
</table> </table>
@ -62,7 +64,7 @@ Protect> restore /etc/host -pick -inactive /tmp/restored/
<table style="border: 1px solid black; border-collapse: collapse; width:100%;"> <table style="border: 1px solid black; border-collapse: collapse; width:100%;">
<tbody> <tbody>
<tr> <tr>
<td>tsm&gt;&nbsp;&nbsp; restore&nbsp; /etc/host&nbsp; -pick&nbsp; -inactive&nbsp; /tmp/restored/<br> <td>Protect&gt;&nbsp;&nbsp; restore&nbsp; /etc/host&nbsp; -pick&nbsp; -inactive&nbsp; /tmp/restored/<br>
Restore function invoked.<br> Restore function invoked.<br>
TSM Scrollable PICK Window - Restore<br> TSM Scrollable PICK Window - Restore<br>
<br> <br>
@ -80,6 +82,63 @@ Protect> restore /etc/host -pick -inactive /tmp/restored/
</tr> </tr>
</tbody> </tbody>
</table> </table>
<br>
### **2. Fixity check fails for whole dataset (all files in dataset folder):**
**Restore a directory with the backup state of a certain date to a new target directory**
```bash
Protect> restore /storage/app/public/files/268/ -sub=yes -inactive -pitd=10/20/21 /tmp/268/
```
Restore the complete directory "storage/app/public/files/268/" including all subdirectories (parameter -sub=yes) as it was at the time "October 20, 2021" to the directory "/tmp/268" (must be created before). If no new folder is defined, the folder "/storage/app/public/files/268/" will be overwritten. There is no prompt, the restore starts immediately.
### **3. Restore a file in different/all versions to different result files**
First, it is **queried which versions** exist:
```bash
Protect> q backup -inactive -subdir=yes /home/testuser/xxxx.txt
```
Response:
<table style="border: 1px solid black; border-collapse: collapse; width:100%;">
<tr>
<th>Size</th>
<th>Backup Date</th>
<th>Mgmt Class</th>
<th> A/I File</th>
</tr>
<tr>
<td>447 B</td>
<td>10/20/2021 11:04:15</td>
<td>DEFAULT</td>
<td>A /home/testuser/xxxx.txt</td>
</tr>
<tr>
<td>270 B</td>
<td>10/16/2021 11:18:37</td>
<td>DEFAULT</td>
<td> I /home/testuser/xxxx.txt</td>
</tr>
</tr>
<tr>
<td>418 B</td>
<td>10/17/2021 11:16:20</td>
<td>DEFAULT</td>
<td> I /home/testuser/xxxx.txt</td>
</tr>
</table>
There are 3 versions of the file "xxxx.txt", their backup date and time is displayed in each case. Thus you are able to restore the respective versions individually, if necessary also under other name. e.g.:
```bash
Protect> restore -inactive -subdir=yes -pitd=10/17/2021 /home/testuser/xxxx.txt /restore_folder_/xxxx_vom17oct2014.txt
Protect> restore -inactive -subdir=yes -pitd=10/16/2021 /home/testuser/xxxx.txt /restore_folder_/xxxx_vom16oct2014.txt
```
<!-- 2. backup the latest version of a folder 268 with content to tmp folder: <!-- 2. backup the latest version of a folder 268 with content to tmp folder:
`bash `bash
@ -94,7 +153,6 @@ worstcase: Restore whole data disk, which is mounted into /storage, and all of i
``` ```
--> -->
<h1> <h1>Database Backup</h1>
Database Backup
</h1> ![Image](./db_backup.drawio.svg)
....

File diff suppressed because one or more lines are too long

171
db_backup.drawio.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 63 KiB