Recherche tuto install serveur bacula
Résolu
dabigben
Messages postés
2110
Statut
Membre
-
sabrina974 -
sabrina974 -
Bonjour,
Bah voila j'aimerais bien monter un serveur de sauvegarde bacula sur une fedora 12 mais je ne trouve pas de tuto type "pour les nuls", snif car je suis nul. Les docs que je trouve sont visiblement ecrites par des gens qui connaissent linux depuis au moins 30ans (mais au moins hein!) Donc j'en appelle a vos reseau et j'espère que quelqu'un pourra m'aiguiller vers un sympatique petit lien qui ne nécessite pas de connaissances en c++ !!!
merci !
Bah voila j'aimerais bien monter un serveur de sauvegarde bacula sur une fedora 12 mais je ne trouve pas de tuto type "pour les nuls", snif car je suis nul. Les docs que je trouve sont visiblement ecrites par des gens qui connaissent linux depuis au moins 30ans (mais au moins hein!) Donc j'en appelle a vos reseau et j'espère que quelqu'un pourra m'aiguiller vers un sympatique petit lien qui ne nécessite pas de connaissances en c++ !!!
merci !
A voir également:
- Recherche tuto install serveur bacula
- Changer serveur dns - Guide
- Recherche automatique des chaînes ne fonctionne pas - Guide
- Tuto tableau croisé dynamique - Guide
- Rechercher ou entrer l'adresse mm - recherche google - Guide
- Serveur entrant et sortant - Guide
22 réponses
Salut,
la doc officielle est accessible sans problème on te demande juste de configurer trois fichiers y'a rien de complexe là dedans, elle est juste bien détaillé cette doc ce qui donne cette impression.
la doc officielle est accessible sans problème on te demande juste de configurer trois fichiers y'a rien de complexe là dedans, elle est juste bien détaillé cette doc ce qui donne cette impression.
Par hasard, miramaze, tu le connais ce logiciel toi ? Il semble etre le meilleur dans on genre étant donné qu'il integre d'après ce que j'ai lu le volume shadowing...Et à mon taf, c'est indispensable... Tu l'a mis en place facilement toi ?
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question
Ah j'avais pas vu ton post je suis désolé. Mit en place facilement, non. C'est casse-bonbon à régler, un peu mal fait je dirais sur les bords, ils auraient pû se fendre d'un script de configuration, je pensais d'ailleurs en faire un, faudrait que je vois ça.
All software sucks.
Alan Cox
All software sucks.
Alan Cox
Bon je crois que j'ai a peu près réussi a le configurer mais maintenant je galère a faire marcher webacula, je ne trouve aucune doc nulle part, tu n'en aurais pas une par hasard ?
Non désolé j'ai pas ça. J'imagine que tu dois lancer un serveur apache et basta non ? Où est le problème ?
All software sucks.
Alan Cox
All software sucks.
Alan Cox
Bin le soucis est que quand je vais dans localhost/webacula j'ai une page blanche qui s'affiche. apache marche bien pourtant ça me gave...
Et tu l'as installé avec le gestionnaire de paquets webacula ? Si tu vas voir les sources de ta page localhost/webacula, que t'affiches le navigateur ?
All software sucks.
Alan Cox
All software sucks.
Alan Cox
Oui j'ai tout installé par le gestionnaire de paquet, et le code source de localhost/webacula est vierge lui aussi...
tain non mais serieux la configuration de ce truc c'est vraiment abusé je commence vraiment a me décourager la... Déja ils aurait pu rassemblé les fichiers de conf dans un seul la franchement obligé d'avoir tout les fichier sous les yeux pour pas faire de connerie, punaise tu ne voudrais pas me faire passer un lot de fichiers de conf valides que je compare un peu aux miens sinon je crois que je vais abandonner et ça m'énerve j'aimerais bien y arriver quand meme, mais c'est tellement tordu...
Ok
le bacula-dir
le bacula-dir
#
# Default Bacula Director Configuration file
#
# The only thing that MUST be changed is to add one or more
# file or directory names in the Include directive of the
# FileSet resource.
#
# For Bacula release 2.4.4 (28 December 2008) -- debian 5.0
#
# You might also want to change the default email address
# from root to your address. See the "mail" and "operator"
# directives in the Messages resource.
#
Director { # define myself
Name = powermate-6-dir
DIRport = 9101 # where we listen for UA connections
QueryFile = "/etc/bacula/scripts/query.sql"
WorkingDirectory = "/var/lib/bacula"
PidDirectory = "/var/run/bacula"
Maximum Concurrent Jobs = 1
Password = "sWaZRqTS1VX2uacyTZNXlI4Ax9Oj5MK1ANC62QBta0xi" # Console password
Messages = Daemon
DirAddress = 127.0.0.1
}
JobDefs {
Name = "DefaultJob"
Type = Backup
Level = Incremental
Client = powermate-6-fd
FileSet = "Full Set"
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}
#
# Define the main nightly save backup job
# By default, this job will back up to disk in /nonexistant/path/to/file/archive/dir
Job {
Name = "Client1"
JobDefs = "DefaultJob"
Write Bootstrap = "/var/lib/bacula/Client1.bsr"
}
#Job {
# Name = "Client2"
# Client = powermate-62-fd
# JobDefs = "DefaultJob"
# Write Bootstrap = "/var/lib/bacula/Client2.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
## WARNING!!! Passing the password via the command line is insecure.
## see comments in make_catalog_backup for details.
## Arguments to make_catalog_backup are:
## make_catalog_backup <database-name> <user-name> <password> <host>
#RunBeforeJob = "/etc/bacula/scripts/make_catalog_backup bacula bacula"
## This deletes the copy of the catalog
#RunAfterJob = "/etc/bacula/scripts/delete_catalog_backup"
#Write Bootstrap = "/var/lib/bacula/BackupCatalog.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=powermate-6-fd
#FileSet="Full Set"
#Storage = File
#Pool = Default
#Messages = Standard
#Where = /nonexistant/path/to/file/archive/dir/bacula-restores
#}
# List of files to be backed up
FileSet {
Name = "Full Set"
Include {
Options {
signature = MD5
}
#
# Put your list of files here, preceded by 'File =', one per line
# or include an external list with:
#
# File = <file-name
#
# Note: / backs up everything on the root partition.
# if you have other partitons such as /usr or /home
# you will probably want to add them too.
#
# By default this is defined to point to the Bacula build
# directory to give a reasonable FileSet to backup to
# disk storage during initial testing.
#
File = /etc
}
#
# If you backup the root directory, the following two excluded
# files can be useful
#
}
#
# 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 = "WeeklyCycle"
Run = Full daily at 11:05
Run = Full daily at 11:50
Run = Full daily at 11:55
}
#This schedule does the catalog. It starts after the WeeklyCycle
#Schedule {
#Name = "WeeklyCycleAfterBackup"
#Run = Full sun-sat at 23:10
#}
# This is the backup of the catalog
#FileSet {
#Name = "Catalog"
#Include {
#Options {
#signature = MD5
#}
#File = /var/lib/bacula/bacula.sql
#}
#}
# Client (File Services) to backup
Client {
Name = powermate-6-fd
Address = localhost
FDPort = 9102
Catalog = MyCatalog
Password = "ARm7qyF3lJSBKJ9NRICUj+Ry3PRJ3EZN92EnilHFVb8/" # password for FileDaemon
File Retention = 30 days # 30 days
Job Retention = 6 months # six months
AutoPrune = yes # Prune expired Jobs/Files
}
#
# Second Client (File Services) to backup
# You should change Name, Address, and Password before using
#
#Client {
# Name = powermate-62-fd
# Address = powermate-62
# FDPort = 9102
# Catalog = MyCatalog
# Password = "ARm7qyF3lJSBKJ9NRICUj+Ry3PRJ3EZN92EnilHFVb8/2" # password for FileDaemon 2
# File Retention = 30 days # 30 days
# Job Retention = 6 months # six months
# AutoPrune = yes # Prune expired Jobs/Files
#}
# Definition of file storage device
Storage {
Name = File
# Do not use "localhost" here
Address = localhost # N.B. Use a fully qualified name here
SDPort = 9103
Password = "sL0Pjc3Nl1Je8zgVW3u8+0cI+vdIl5XdizCLU0v5dotr"
Device = FileStorage
Media Type = File
}
# Definition of DDS tape storage device
#Storage {
# Name = DDS-4
# Do not use "localhost" here
# Address = powermate-6 # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "sL0Pjc3Nl1Je8zgVW3u8+0cI+vdIl5XdizCLU0v5dotr" # password for Storage daemon
# Device = DDS-4 # must be same as Device in Storage daemon
# Media Type = DDS-4 # must be same as MediaType in Storage daemon
# Autochanger = yes # enable for autochanger device
#}
# Definition of 8mm tape storage device
#Storage {
# Name = "8mmDrive"
# Do not use "localhost" here
# Address = powermate-6 # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "sL0Pjc3Nl1Je8zgVW3u8+0cI+vdIl5XdizCLU0v5dotr"
# Device = "Exabyte 8mm"
# MediaType = "8mm"
#}
# Definition of DVD storage device
#Storage {
# Name = "DVD"
# Do not use "localhost" here
# Address = powermate-6 # N.B. Use a fully qualified name here
# SDPort = 9103
# Password = "sL0Pjc3Nl1Je8zgVW3u8+0cI+vdIl5XdizCLU0v5dotr"
# Device = "DVD Writer"
# MediaType = "DVD"
#}
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = "bacula"; dbuser = "bacula"; dbpassword = "bacula"
}
# 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/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = 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/lib/bacula/log" = all, !skipped
}
#
# Message delivery for daemon messages (no job).
Messages {
Name = Daemon
mailcommand = "/usr/lib/bacula/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula daemon message\" %r"
mail = root@localhost = all, !skipped
console = all, !skipped, !saved
append = "/var/lib/bacula/log" = all, !skipped
}
# Default pool definition
Pool {
Name = Default
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
LabelFormat = "PWM6"
UseVolumeOnce = yes
}
# Scratch pool definition
Pool {
Name = Scratch
Pool Type = Backup
}
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
Name = powermate-6-mon
Password = "qMwcsiwZKWqmrKq1rykrWz96MtoL3D0G8DxO6f0o0v2m"
CommandACL = status, .status
}
Le bacula fd
#
# Default Bacula File Daemon Configuration file
#
Director {
Name = powermate-6-dir
Password = "ARm7qyF3lJSBKJ9NRICUj+Ry3PRJ3EZN92EnilHFVb8/"
Address = 127.0.0.1
DIRport = 9101
}
Director {
Name = powermate-6-mon
Password = "OWQaB2VMloOQuB5qrp+kWGzrfJ5nMfK+GVMvu1snxK7E"
Monitor = yes
Address = 127.0.0.1
DIRport = 9101
}
FileDaemon { # this is me
Name = powermate-6-fd
FDport = 9102 # where we listen for the director
WorkingDirectory = /var/lib/bacula
Pid Directory = /var/run/bacula
Maximum Concurrent Jobs = 20
FDAddress = 127.0.0.1
}
Messages {
Name = Standard
director = powermate-6-dir = all, !skipped, !restored
}
Le bacula sd
All software sucks.
Alan Cox
#
# Default Bacula Storage Daemon Configuration file
#
Storage { # definition of myself
Name = powermate-6-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run/bacula"
Maximum Concurrent Jobs = 20
SDAddress = 127.0.0.1
}
Director {
Name = powermate-6-dir
Password = "sL0Pjc3Nl1Je8zgVW3u8+0cI+vdIl5XdizCLU0v5dotr"
}
Director {
Name = powermate-6-mon
Password = "9v4d+PzZv7C5pdB4iR+larCJqMBw6zsAEKPcxKh7ZHdU"
Monitor = yes
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Messages {
Name = Standard
director = powermate-6-dir = all
}
All software sucks.
Alan Cox
Et la console
#
# Bacula User Agent (or Console) Configuration File
#
Director {
Name = localhost-dir
DIRport = 9101
address = localhost
Password = "sWaZRqTS1VX2uacyTZNXlI4Ax9Oj5MK1ANC62QBta0xi"
}
Il doit y avoir une erreure toute bête mais qui n'empêche pas le programme de fonctionner, qui est vraiment sans importance.
All software sucks.
Alan Cox
All software sucks.
Alan Cox
Bin disons que oui je pense que je ne suis pas loin d'avoir un bon résultat, je commence a comprendre un peu comment c'est foutu, mon client de test ( XP Pro) lui par contre ne veut pas lancer le service bacula-fd, ni la console, et avant de tester l'automatisation, je voudrais bien y arriver en lancant le job manuellement depuis la console... Mais je vais prendre un nouveau client de test plus propre pour tester..Je VAIS y arriver...
Suuuper !!!! Merci a toi, je me penche dessus illico, sérieux un grand merci ça fait plaisir, je me sens moins seul lol !
Bon bin je sais pas, mon job ne se declenche pas automatiquement, le service sur le client XP ne veut pas démarrer, quand je tape bconsole dans un terminal en local sur le serveur j'ai une "connexion refusée", en clair, rien ne marche...
Voila je suis en train de faire une doc pour les noobs sur bacula, c'est pas fini mais il y déja la description du bacula-dir.conf, donc les trois quart du boulot. La suite vizndra bientot...
http://lespc.free.fr/?p=65
http://lespc.free.fr/?p=65