From 3445086dc53e310161f7b7608773bf1b270f4e19 Mon Sep 17 00:00:00 2001 From: Peter Reichart Date: Tue, 25 Jun 2024 21:19:42 +0000 Subject: [PATCH] =?UTF-8?q?bacula-tools.md=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bacula-tools.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 bacula-tools.md diff --git a/bacula-tools.md b/bacula-tools.md new file mode 100644 index 0000000..3ad0e94 --- /dev/null +++ b/bacula-tools.md @@ -0,0 +1,38 @@ + +## bscan + +* scannt bestehende bacula backup-dateien und erstellt kataloge vom inhalt + + +bscan -c /etc/bacula/bacula-sd.conf -P bacula -h localhost -v -V DIP02-0001 /var/spool/vchanger/vchanger-1/0 + ^ ^ ^ ^ ^ + | | | | +-- Tapedrive oder hier: vchanger Device + | | | +------------- Name des Volumes + | | +--------------------------- Datenbank Host + | +---------------------------------------- Datenbank Passwort + +------------------------------------------------------------------------- Konfigurationsdatei Storage Daemon + + +Beispiel: + + +bscan -c /etc/bacula/bacula-sd.conf -P bacula -h localhost -v -V DIP02-0001 /var/spool/vchanger/vchanger-1/0 +bscan: butil.c:292-0 Using device: "/var/spool/vchanger/vchanger-1/0" for reading. +25-Jun 23:14 bscan JobId 0: No slot defined in catalog (slot=0) for Volume "DIP02-0001" on "usb-vchanger-1-drive0" (/var/spool/vchanger/vchanger-1/0). +25-Jun 23:14 bscan JobId 0: Cartridge change or "update slots" may be required. +25-Jun 23:14 bscan JobId 0: Ready to read from volume "DIP02-0001" on File device "usb-vchanger-1-drive0" (/var/spool/vchanger/vchanger-1/0). +bscan: bscan.c:323-0 Using Database: bacula, User: bacula +bscan: bscan.c:468-0 Pool record for DIP-02 found in DB. +bscan: bscan.c:482-0 Pool type "Backup" is OK. +bscan: bscan.c:499-0 VOL_LABEL: Media record not found for Volume: DIP02-0001 +bscan: bscan.c:510-0 Media type "File" is OK. +bscan: bscan.c:519-0 VOL_LABEL: OK for Volume: DIP02-0001 +bscan: bscan.c:542-0 SOS_LABEL: Job record not found for JobId: 0 +25-Jun 23:16 bscan JobId 0: End of Volume "DIP02-0001" at addr=4475054080 on device "usb-vchanger-1-drive0" (/var/spool/vchanger/vchanger-1/0). +bscan: bscan.c:669-0 End of all Volumes. VolFiles=0 VolBlocks=0 VolBytes=4,475,015,453 +Records would have been added or updated in the catalog: + 1 Media + 1 Pool + 1 Job + 12813 File + \ No newline at end of file