Hello Sul, > I want to execute bscan via bash script as I have quite some amount of tapes > to synchronise with Bacula DB. If I run bscan manually than it is working > fine but if I try the bscan via Bash Script > than it is always stuck at a > point and unless or until I press Enter, it is not going forward. > I tried several procedure to automate the Enter in Bash Script but it did not > work rather getting the following error message(I have trimmed few info from > original message).
This is quite a challenging and beautiful task you have. I don't know the reasons for this demand, but it would be much user to migrate the data from the original Bacula catalog. Anyways: I'm not sure if bscan is cable to automagically load the tapes, but there are a few things you need to have in mind: 1. The bacula-sd must be stopped, or at least not configured to use the drive you will use for bscan. 2. The tapes need to be bscanned in the order they were written. From the oldest to the newest. Perhaps you could use the lastwritten field to sort. I would write a shell script to sort the tapes accordinly, fetch their slots, and perform a mtx -f <device> load an unload between the bscans. Atte. MSc Heitor Faria (Miami/USA) Bacula LATAM CIO mobile1: + 1 909 655-8971 mobile2: + 55 61 98268-4220 bacula.lat | bacula.com.br
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users