пытаюсь настроить не выходит
bconsole status all
Код: Выделить всё
backup# bconsole
Connecting to Director 192.168.200.24:9101
1000 OK: backup-dir Version: 2.4.4 (28 December 2008)
Enter a period to cancel a command.
*status all
backup-dir Version: 2.4.4 (28 December 2008) i386-portbld-freebsd7.2 freebsd 7.2-RELEASE
Daemon started 16-Jul-09 08:37, 1 Job run since started.
Heap: heap=0 smbytes=24,974 max_bytes=26,841 bufs=119 max_bufs=133
Scheduled Jobs:
Level Type Pri Scheduled Name Volume
===================================================================================
Incremental Backup 10 17-Jul-09 01:00 dc-usr_jails-job *unknown*
====
Running Jobs:
No Jobs running.
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
====================================================================
1 Full 0 0 Error 15-Jul-09 01:00 dc-usr_jails-job.2009-07-15_01
2 Full 0 0 Error 15-Jul-09 08:39 dc-usr_jails-job.2009-07-15_08
====
Connecting to Storage daemon backup-disk1-storage at 192.168.200.24:9103
backup-sd Version: 2.4.4 (28 December 2008) i386-portbld-freebsd7.2 freebsd 7.2-RELEASE
Daemon started 16-Jul-09 08:38, 0 Jobs run since started.
Heap: heap=0 smbytes=8,249 max_bytes=8,801 bufs=46 max_bufs=50
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8
Running Jobs:
No Jobs running.
====
Jobs waiting to reserve a drive:
====
Terminated Jobs:
JobId Level Files Bytes Status Finished Name
===================================================================
1 Full 0 0 Error 15-Jul-09 01:00 dc-usr_jails-job.2009-07-15_01
2 Full 0 0 Error 15-Jul-09 08:39 dc-usr_jails-job.2009-07-15_08
====
Device status:
Device "backup-disk-device" is not open or does not exist.
====
Used Volume status:
====
====
Connecting to Client dc-fd at 192.168.200.12:9102
platform2-fd Version: 2.4.4 (28 December 2008) i386-portbld-freebsd7.2 freebsd 7.2-RELEASE
Daemon started 16-Jul-09 09:18, 0 Jobs run since started.
Heap: heap=0 smbytes=7,343 max_bytes=7,465 bufs=42 max_bufs=43
Sizeof: boffset_t=8 size_t=4 debug=0 trace=0
Running Jobs:
Director connected at: 16-Jul-09 09:20
No Jobs running.
====
Terminated Jobs:
====
*
Код: Выделить всё
backup# bconsole
Connecting to Director 192.168.200.24:9101
1000 OK: backup-dir Version: 2.4.4 (28 December 2008)
Enter a period to cancel a command.
*label
Automatically selected Catalog: default
Using Catalog "default"
Automatically selected Storage: backup-disk1-storage
Enter new Volume name: file
Defined Pools:
1: dc-usr_jails-pool
2: Scratch
Select the Pool (1-2): 1
Connecting to Storage daemon backup-disk1-storage at 192.168.200.24:9103 ...
Sending label command for Volume "file" Slot 0 ...
3999 Device "backup-disk1-device" not found or could not be opened.
Label command failed for Volume file.
Do not forget to mount the drive!!!
*
Код: Выделить всё
Director {
Name = backup-dir
DIRport = 9101
QueryFile = "/usr/local/share/bacula/query.sql"
WorkingDirectory = "/var/db/bacula"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "secret"
Messages = Daemon
}
Job {
Name = "RestoreFiles"
Type = Restore
Client = dc-fd
FileSet = "dc-usr_jails-set"
Storage = backup-disk1-storage
Pool = dc-usr_jails-pool
Messages = Daemon
Where = /usr/local/backup/bacula-restores
}
Job {
Name = "dc-usr_jails-job"
Type = Backup
Level = Incremental
Client = dc-fd
FileSet = "dc-usr_jails-set"
Schedule = "WeeklyCycle-lhrs-sun"
Storage = backup-disk1-storage
Messages = Daemon
Pool = dc-usr_jails-pool
Priority = 10
Write Bootstrap = "/var/db/bacula/dc-usr_jails-job.bsr"
}
FileSet {
Name = "dc-usr_jails-set"
Include {
Options {
signature = MD5
}
File = /etc
}
}
Pool {
Name = dc-usr_jails-pool
Pool Type = Backup
Recycle = yes
AutoPrune = yes
Volume Retention = 365 days
}
Client {
Name = dc-fd
Address = 192.168.200.12
FDPort = 9102
Catalog = "default"
Password = "secret"
AutoPrune = yes
}
Storage {
Name = backup-disk1-storage
Address = 192.168.200.24
SDPort = 9103
Password = "secret"
Device = backup-disk1-device
Media Type = File
}
Schedule {
Name = "WeeklyCycle-lhrs-sun"
Run = Full 1st sun at 1:00
Run = Differential 2nd-5th sun at 1:00
Run = Incremental mon-sat at 1:00
}
Catalog {
Name = default
dbname = "bacula"; dbuser = "bacula"; dbpassword = ""
}
Messages {
Name = Daemon
syslog = all
}
Pool {
Name = Scratch
Pool Type = Backup
}
Код: Выделить всё
Storage {
Name = backup-sd
SDPort = 9103
..
WorkingDirectory = "/var/db/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
Heartbeat Interval = 30 sec
}
Director {
Name = backup-dir
Password = "secret"
}
Device {
Name = backup-disk-device
Media Type = File
Archive Device = /usr/local/backup
LabelMedia = yes;
..
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
}
Messages {
Name = Standard
director = backup-dir = all
}
Код: Выделить всё
Director {
Name = backup-dir
Password = "secret"
}
FileDaemon { # this is me
Name = platform2-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/db/bacula
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = backup-dir = all, !skipped, !restored
}