CentOS 7
Ads

Bacula : Backup Operation
2015/07/21
 
This is basic Backup Operation.
It's possible to opereate on both Server and Client. (this example is on Server)
[1] Run Backup.
[root@dlp ~]#
bconsole

Connecting to Director dlp.srv.world:9101
1000 OK: bacula-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*
label
   
# create a volume for backup

Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Automatically selected Storage: File
Enter new Volume name:
Vol-20150721
   
# any name you like

Defined Pools:
     1: Default
     2: File
     3: Scratch
Select the Pool (1-3):
2
   
# select 2 as an example

Connecting to Storage daemon File at dlp.srv.world:9103 ...
Sending label command for Volume "Vol-20150721" Slot 0 ...
3000 OK label. VolBytes=207 DVD=0 Volume="Vol-20150721" Device="FileStorage" (/tmp)
Catalog record for Volume "Vol-20150721", Slot 0  successfully created.
Requesting to mount FileStorage ...
3906 File device ""FileStorage" (/tmp)" is always mounted.
*
run
   
# run backup

A job name must be specified.
The defined Job resources are:
     1: BackupClient1
     2: BackupCatalog
     3: RestoreFiles
Select Job resource (1-3):
1
   
# select a Job (select 1 as an example)
Run Backup job
JobName:  BackupClient1
Level:    Incremental
Client:   bacula-fd
FileSet:  Full Set
Pool:     File (From Job resource)
Storage:  File (From Job resource)
When:     2015-07-21 23:47:30
Priority: 10
OK to run? (yes/mod/no):
yes
   
# Go

Job queued. JobId=1
You have messages.
*
messages
   
# show messages

22-Jul 14:48 bacula-dir JobId 1: No prior Full backup Job record found.
22-Jul 14:48 bacula-dir JobId 1: No prior or suitable Full backup found in catalog. Doing FULL backup.
22-Jul 14:48 bacula-dir JobId 1: Start Backup JobId 1, Job=BackupClient1.2015-07-21_23.48.20_04
22-Jul 14:48 bacula-dir JobId 1: Using Device "FileStorage" to write.
22-Jul 14:48 bacula-sd JobId 1: Wrote label to prelabeled Volume "Vol-20150721" on device "FileStorage" (/tmp)
22-Jul 14:48 bacula-sd JobId 1: Elapsed time=00:00:01, Transfer rate=839  Bytes/second
22-Jul 14:48 bacula-dir JobId 1: Bacula bacula-dir 5.2.13 (19Jan13):
  Build OS:               x86_64-redhat-linux-gnu unknown unknown
  JobId:                  1
  Job:                    BackupClient1.2015-07-21_23.48.20_04
  Backup Level:           Full (upgraded from Incremental)
  Client:                 "bacula-fd" 5.2.13 (19Jan13) x86_64-redhat-linux-gnu,unknown,unknown
  FileSet:                "Full Set" 2015-07-21 23:48:20
  Pool:                   "File" (From Job resource)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "File" (From Job resource)
  Scheduled time:         21-Jul-2015 23:47:30
  Start time:             21-Jul-2015 23:48:23
  End time:               21-Jul-2015 23:48:23
  Elapsed time:           0 secs
  Priority:               10
  FD Files Written:       5
  SD Files Written:       5
  FD Bytes Written:       369 (369 B)
  SD Bytes Written:       839 (839 B)
  Rate:                   0.0 KB/s
  Software Compression:   16.5 %
  VSS:                    no
  Encryption:             no
  Accurate:               no
  Volume name(s):         Vol-20150721
  Volume Session Id:      1
  Volume Session Time:    1437542407
  Last Volume Bytes:      1,578 (1.578 KB)
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

21-Jul 23:48 bacula-dir JobId 1: Begin pruning Jobs older than 6 months .
21-Jul 23:48 bacula-dir JobId 1: No Jobs found to prune.
21-Jul 23:48 bacula-dir JobId 1: Begin pruning Files.
21-Jul 23:48 bacula-dir JobId 1: No Files found to prune.
21-Jul 23:48 bacula-dir JobId 1: End auto prune.

*
exit
   
# quit
[root@dlp ~]#
ll /tmp

total 4
drwx------ 3 root   root   16 Jul 22 11:33 systemd-private-L0EOqu
drwx------ 3 root   root   16 Jul 22 11:43 systemd-private-OMXOwg
-rw-r----- 1 bacula tape 1578 Jul 22 14:48 Vol-20150721
# backup file was just saved

 
Tweet