Всем привет, установил последнюю версию bacula на Centos 5.9, по мануалу, все встало ровно, подключаюсь консолью:
Connecting to Director backupsrv.damu.local:9101
1000 OK: backupsrv-dir Version: 5.2.13 (19 February 2013)
Enter a period to cancel a command.
*run
Automatically selected Catalog: default
Using Catalog "default"
A job name must be specified.
The defined Job resources are:
1: backup-job
2: RestoreFiles
Select Job resource (1-2): 1
Run Backup job
JobName: backup-job
Level: Full
Client: backup-fd
FileSet: backup-set
Pool: backup-pool (From Job resource)
Storage: hdd1-storage (From Job resource)
When: 2013-09-02 01:19:38
Priority: 10
OK to run? (yes/mod/no): yes
Job queued. JobId=14
Теперь хочу восстановить файлы:
*restore
First you select one or more JobIds that contain files
to be restored. You will be presented several methods
of specifying the JobIds. Then you will be allowed to
select which files from those JobIds are to be restored.
To select the JobIds, you have the following choices:
1: List last 20 Jobs run
2: List Jobs where a given File is saved
3: Enter list of comma separated JobIds to select
4: Enter SQL list command
5: Select the most recent backup for a client
6: Select backup for a client before a specified time
7: Enter a list of files to restore
8: Enter a list of files to restore before a specified time
9: Find the JobIds of the most recent backup for a client
10: Find the JobIds for a backup for a client before a specified time
11: Enter a list of directories to restore for found JobIds
12: Select full restore to a specified Job date
13: Cancel
Select item: (1-13): 3
Enter JobId(s), comma separated, to restore: 14
You have selected the following JobId: 14
Building directory tree for JobId(s) 14 ...
For one or more of the JobIds selected, no files were found,
so file selection is not possible.
Most likely your retention policy pruned the files.
Do you want to restore all the files? (yes|no): yes
No files found to read. No bootstrap file written.
No files selected to be restored.
Но ничего не происходит, резервные копии производятся с Windows 2003 server, подскажите в чем проблема?
Не создаются резервные копии Bacula
Модератор: weec
Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Услуги хостинговой компании Host-Food.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
-
- проходил мимо
- Сообщения: 3
- Зарегистрирован: 2012-02-15 9:57:45
Re: Не создаются резервные копии Bacula
"No files found to read" пишет что не может найти файл. Конфиги, логи бакулы покажите.
-
- проходил мимо
- Сообщения: 2
- Зарегистрирован: 2013-09-01 22:15:12
Re: Не создаются резервные копии Bacula
Код: Выделить всё
Director {
Name = backupsrv-dir
DIRport = 9101
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/opt/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 20
Password = "j*kb945C" # Console password
Messages = Daemon
}
# Define the main nightly save backup job
# By default, this job will back up to disk in /tmp
Job {
Name = "backup-job"
Type = Backup
Level = Full
Client = backup-fd
FileSet = "backup-set"
Storage = hdd1-storage
Pool = backup-pool
Messages = Daemon
Schedule = "WeeklyFull"
Priority = 10
Write Bootstrap = "/opt/bacula/working/backup-job.bsr"
}
Job {
Name = "lotus-job"
Type = Backup
Level = Full
Client = lotus-fd
FileSet = "lotus-set"
Storage = hdd1-storage
Pool = lotus-pool
Messages = Daemon
Schedule = "WeeklyFull"
Priority = 10
Write Bootstrap = "/opt/bacula/working/backup-job.bsr"
}
# Backup the catalog database (after the nightly save)
#Job {
# Name = "BackupCatalog"
# JobDefs = "DefaultJob"
# Level = Full
# FileSet="Catalog"
# Schedule = "WeeklyCycleAfterBackup"
# # This creates an ASCII copy of the catalog
# # Arguments to make_catalog_backup.pl are:
# # make_catalog_backup.pl <catalog-name>
# RunBeforeJob = "/usr/libexec/bacula/make_catalog_backup.pl MyCatalog"
# # This deletes the copy of the catalog
# RunAfterJob = "/usr/libexec/bacula/delete_catalog_backup"
# Write Bootstrap = "/var/spool/bacula/%n.bsr"
# Priority = 11 # run after main backup
#}
#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#
Job {
Name = "RestoreFiles"
Type = Restore
Client = backup-fd
FileSet = "backup-set"
Storage = hdd1-storage
Pool = backup-pool
Messages = Daemon
Where = /mnt/hdd1/bacula-restores
}
Job {
Name = "RestoreFiles1"
Type = Restore
Client = lotus-fd
FileSet = "lotus-set"
Storage = hdd1-storage
Pool = lotus-pool
Messages = Daemon
Where = /mnt/hdd1/bacula-restores
}
# List of files to be backed up
FileSet {
Name = "backup-set"
Include {
Options {
signature = MD5
compression = GZIP
}
File = "E:/Test_dir"
}
}
FileSet {
Name = "lotus-set"
Include {
Options {
signature = MD5
compression = GZIP
}
File = "E:/"
}
}
#
# When to do the backups, full backup on first sunday of the month,
# differential (i.e. incremental since full) every other sunday,
# and incremental backups other days
Schedule {
Name = "WeeklyFull"
Run = level=Full on mon-sun at 00:00
}
# This is the backup of the catalog
FileSet {
Name = "Catalog"
Include {
Options {
signature = MD5
}
File = "/opt/bacula/working/bacula.sql"
}
}
# Client (File Services) to backup
Client {
Name = backup-fd
Address = backup.damu.local
FDPort = 9102
Catalog = "default"
Password = "j*kb945C" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 3 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
Client {
Name = lotus-fd
Address = lotus.damu.local
FDPort = 9102
Catalog = "default"
Password = "j*kb945C" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 3 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
# Definition of file storage device
Storage {
Name = hdd1-storage
Address = backupsrv.damu.local # N.B. Use a fully qualified name here
SDPort = 9103
Password = "j*kb945C"
Device = hdd1-device
Media Type = File
}
# Generic catalog service
Catalog {
Name = default
dbname = "bacula"; dbuser = "bacula"; dbpassword = "123456"
}
# Reasonable message delivery -- send most everything to email address
# and to the console
#Messages {
# Name = Standard
#
# NOTE! If you send to two email or more email addresses, you will need
# to replace the %r in the from field (-f part) with a single valid
# email address in both the mailcommand and the operatorcommand.
# What this does is, it sets the email address that emails would display
# in the FROM field, which is by default the same email as they're being
# sent to. However, if you send email to more than one address, then
# you'll have to set the FROM address manually, to a single address.
# for example, a 'no-reply@mydomain.com', is better since that tends to
# tell (most) people that its coming from an automated source.
#
# mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
# operatorcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
# mail = helpdesk@htl.kz = all, !skipped
# operator = root@localhost = mount
# console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
# append = "/var/log/bacula/bacula.log" = all, !skipped
# catalog = all
#}
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
# mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
# mail = helpdesk@htl.kz = all, !skipped
#console = all, !skipped, !saved
#append = "/var/log/bacula/bacula.log" = all, !skipped
syslog = all
}
Pool {
Name = backup-pool
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
Pool {
Name = lotus-pool
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
# Restricted console used by tray-monitor to get the status of the director
Console {
Name = backupsrv-mon
Password = "j*kb945C"
CommandACL = status, .status
}
Код: Выделить всё
#
# Default Bacula Storage Daemon Configuration file
#
# For Bacula release 5.2.13 (19 February 2013) -- redhat Enterprise release
#
# You may need to change the name of your tape drive
# on the "Archive Device" directive in the Device
# resource. If you change the Name and/or the
# "Media Type" in the Device resource, please ensure
# that dird.conf has corresponding changes.
#
Storage { # definition of myself
Name = backupsrv-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/opt/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
#
# List Directors who are permitted to contact Storage daemon
#
Director {
Name = backupsrv-dir
Password = "j*kb945C"
}
#
# Restricted Director, used by tray-monitor to get the
# status of the storage daemon
#
#Director {
# Name = backupsrv-mon
# Password = "j*kb945C"
# Monitor = yes
#}
#
# Note, for a list of additional Device templates please
# see the directory <bacula-source>/examples/devices
# Or follow the following link:
# http://bacula.svn.sourceforge.net/viewvc/bacula/trunk/bacula/examples/devices/
#
#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
# same Name and MediaType.
#
Device {
Name = hdd1-device
Media Type = File
Archive Device = /mnt/hdd1/backup
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
#
# An autochanger device with two drives
#
#Autochanger {
# Name = Autochanger
# Device = Drive-1
# Device = Drive-2
# Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
# Changer Device = /dev/sg0
#}
#Device {
# Name = Drive-1 #
# Drive Index = 0
# Media Type = DLT-8000
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# #
# # Enable the Alert command only if you have the mtx package loaded
# # Note, apparently on some systems, tapeinfo resets the SCSI controller
# # thus if you turn this on, make sure it does not reset your SCSI
# # controller. I have never had any problems, and smartctl does
# # not seem to cause such problems.
# #
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#Device {
# Name = Drive-2 #
# Drive Index = 1
# Media Type = DLT-8000
# Archive Device = /dev/nst1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
# Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-2 tape drive
#
#Device {
# Name = LTO-2
# Media Type = LTO-2
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 3GB
## Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-3 tape drive
#
#Device {
# Name = LTO-3
# Media Type = LTO-3
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 4GB
## Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A Linux or Solaris LTO-4 tape drive
#
#Device {
# Name = LTO-4
# Media Type = LTO-4
# Archive Device = /dev/nst0
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes;
# RemovableMedia = yes;
# RandomAccess = no;
# Maximum File Size = 5GB
## Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
## Changer Device = /dev/sg0
## AutoChanger = yes
# # Enable the Alert command only if you have the mtx package loaded
## Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
## If you have smartctl, enable this, it has more info than tapeinfo
## Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# A FreeBSD tape drive
#
#Device {
# Name = DDS-4
# Description = "DDS-4 for FreeBSD"
# Media Type = DDS-4
# Archive Device = /dev/nsa1
# AutomaticMount = yes; # when device opened, read it
# AlwaysOpen = yes
# Offline On Unmount = no
# Hardware End of Medium = no
# BSF at EOM = yes
# Backward Space Record = no
# Fast Forward Space File = no
# TWO EOF = yes
# If you have smartctl, enable this, it has more info than tapeinfo
# Alert Command = "sh -c 'smartctl -H -l error %c'"
#}
#
# Send all messages to the Director,
# mount messages also are sent to the email address
#
Messages {
Name = Standard
director = backupsrv-dir = all
}
-
- проходил мимо
Не создаются резервные копии Bacula
Добрый день,у вас заработала резервная копия?
У меня просто точно такая же проблема
У меня просто точно такая же проблема