[3] Bacula – wykonanie kopii

22 marca 2022 Wyłączono przez Adam [zicherka] Nogły

To jest podstawowa operacja tworzenia kopii zapasowej.

[1] Uruchom Backup na konsoli Bacula.

[root@vlsr01 ~]# bconsole
Connecting to Director localhost:9101
1000 OK: 103 bacula-dir Version: 9.0.6 (20 November 2017)
Enter a period to cancel a command.
# utwórz volumen do kopii zapasowej
*label
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
# wybierz zasób do wykonania kopii zapasowej
# następujące ustawienia są domyślne i mają te same ustawienia, dane kopii zapasowej zapisane w [/tmp]
The defined Storage resources are:
     1: File1
     2: File2
Select Storage resource (1-2): 1
Enter autochanger drive[0]: # Enter
# wprowadź nazwę voluminu
Enter new Volume name: Vol-20220321
Enter slot (0 or Enter for none): # Enter
# wybierz kolejkę
Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3): 2
Connecting to Storage daemon File1 at vlsr01.zicher.lab:9103 ...
Sending label command for Volume "Vol-20220321" Slot 0 ...
3000 OK label. VolBytes=231 VolABytes=0 VolType=1 Volume="Vol-20220321" Device="FileChgr1-Dev1" (/tmp)
Catalog record for Volume "Vol-20220321", Slot 0  successfully created.
Requesting to mount FileChgr1 ...
3906 File device ""FileChgr1-Dev1" (/tmp)" is always mounted.
You have messages.
# uruchom zadanie backupu
*run
A job name must be specified.
# wybierz zadanie (zostaw domyślne)
The defined Job resources are:
     1: BackupClient1
     2: BackupCatalog
     3: RestoreFiles
Select Job resource (1-3): 1
Run Backup job
JobName:  BackupClient1
Level:    Incremental
Client:   bacula-fd
FileSet:  Full Set
Pool:     File (From Job resource)
Storage:  File1 (From Job resource)
When:     2022-03-21 10:05:29
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=1
# pokaż wiadomości
*messages
21-mar 10:05 bacula-dir JobId 1: No prior Full backup Job record found.
21-mar 10:05 bacula-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup.
21-mar 10:05 bacula-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2022-03-21_10.05.41_04
21-mar 10:05 bacula-dir JobId 1: Using Device "FileChgr1-Dev1" to write.
21-mar 10:05 bacula-sd JobId 1: Wrote label to prelabeled Volume "Vol-20220321" on File device "FileChgr1-Dev1" (/tmp)
*exit

[root@vlsr01 ~]# ll /tmp
razem 556988
. . . . .
-rw-r-----. 1 bacula tape 570343531 03-21 10:06 Vol-20220321
# kopia zapasowa została wykonana