Outils pour utilisateurs

Outils du site


commun:bacula

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
commun:bacula [2018/12/16 16:20] – francoiscommun:bacula [2019/04/27 08:59] (Version actuelle) – [status director] francois
Ligne 7: Ligne 7:
 Ne pas chercher à configurer le client postgresql. Ne pas chercher à configurer le client postgresql.
   sudo apt install bacula-director-sqlite3   sudo apt install bacula-director-sqlite3
-  + 
 +===== Démarrage ===== 
 + 
 +  sudo systemctl start bacula-director.service 
 +  sudo systemctl start bacula-fd.service 
 +  sudo systemctl start bacula-sd.service 
 ===== Configuration ===== ===== Configuration =====
  
Ligne 21: Ligne 27:
   chmod -R 700 /media/sauvegarde/b_backup   chmod -R 700 /media/sauvegarde/b_backup
  
-<file>+<file conf bacula-dir.conf>
 # #
 # Default Bacula Director Configuration file # Default Bacula Director Configuration file
Ligne 289: Ligne 295:
 </file> </file>
  
-<file>+<file conf bacula-sd.conf>
 # #
 # Default Bacula Storage Daemon Configuration file # Default Bacula Storage Daemon Configuration file
Ligne 380: Ligne 386:
 </file> </file>
  
-<file>+<file conf bacula-fd.conf>
 # #
 # Default  Bacula File Daemon Configuration file # Default  Bacula File Daemon Configuration file
Ligne 431: Ligne 437:
 } }
 </file> </file>
 +
 +===== Commandes bconsole =====
 +
 +==== label ====
 +This command is used to label physical volumes. The full form of this command is:
 +
 +  label storage=<storage-name> volume=<volume-name> slot=<slot>
 +
 +If you leave out any part, you will be prompted for it. The media type is automatically taken from the Storage resource definition that you supply. Once the necessary information is obtained, the Console program contacts the specified Storage daemon and requests that the Volume be labeled. If the Volume labeling is successful, the Console program will create a Volume record in the appropriate Pool.
 +
 +The Volume name is restricted to letters, numbers, and the special characters hyphen (-), underscore (_), colon (:), and period (.). All other characters including a space are invalid. This restriction is to ensure good readability of Volume names to reduce operator errors.
 +
 +Please note, when labeling a blank tape, Bacula will get read I/O error when it attempts to ensure that the tape is not already labeled. If you wish to avoid getting these messages, please write an EOF mark on your tape before attempting to label it:
 +
 +  mt rewind
 +  mt weof
 +
 +The label command can fail for a number of reasons:
 +
 +  - The Volume name you specify is already in the Volume database.
 +  - The Storage daemon has a tape or other Volume already mounted on the device, in which case you must unmount the device, insert a blank tape, then do the label command.
 +  - The Volume in the device is already a Bacula labeled Volume. (Bacula will never relabel a Bacula labeled Volume unless it is recycled and you use the relabel command).
 +  - There is no Volume in the drive.
 +
 +There are two ways to relabel a volume that already has a Bacula label. The brute force method is to write an end of file mark on the tape using the system mt program, something like the following:
 +
 +  mt -f /dev/st0 rewind
 +  mt -f /dev/st0 weof
 +
 +For a disk volume, you would manually delete the Volume.
 +
 +Then you use the label command to add a new label. However, this could leave traces of the old volume in the catalog.
 +
 +The preferable method to relabel a Volume is to first purge the volume, either automatically, or explicitly with the purge command, then use the relabel command described below.
 +
 +If your autochanger has barcode labels, you can label all the Volumes in your autochanger one after another by using the label barcodes command. For each tape in the changer containing a barcode, Bacula will mount the tape and then label it with the same name as the barcode. An appropriate Media record will also be created in the catalog. Any barcode that begins with the same characters as specified on the "CleaningPrefix=xxx" directive in the Director's Pool resource, will be treated as a cleaning tape, and will not be labeled. However, an entry for the cleaning tape will be created in the catalog. For example with:
 +
 +<code>
 +        Pool {
 +          Name ...
 +          Cleaning Prefix = "CLN"
 +       }
 +</code>
 +
 +Any slot containing a barcode of CLNxxxx will be treated as a cleaning tape and will not be mounted. Note, the full form of the command is:
 +
 +  label storage=xxx pool=yyy slots=1-5,10 barcodes
 +
 +==== status ====
 +
 +Commande pour lister les volumes
 +  list volumes
 +==== messages ====
 +
 +
commun/bacula.1544977223.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki