From: ganiuszka <gan...@gm...> - 2012-04-30 17:08:11
|
W dniu 30.04.2012 17:23, Jack Cobb pisze: > John, > > I have tried using the device names (i.e. /dev/nst2 and /dev/nst3) instead > and receive the same error. > > Jack > > > On Mon, Apr 30, 2012 at 11:11 AM, Jack Cobb<jc...@sk...> wrote: >> Hello everyone, >> >> I am wanting to copy data from one tape to a second tape so I have one >> offsite and the other onsite. I am using the bcopy utility but when I >> enter the following command I receive an error message: >> >> bcopy -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 -v >> bcopy: bcopy.c:163 Wrong number of arguments: >> Copyright (C) 2002-2010 Free Software Foundation Europe e.V. >> >> Version: 5.0.1 (24 February 2010) >> >> Usage: bcopy [-d debug_level]<input-archive> <output-archive> >> -b bootstrap specify a bootstrap file >> -c<file> specify a Storage configuration file >> -d<nn> set debug level to<nn> >> -dt print timestamp in debug output >> -i specify input Volume names (separated by |) >> -o specify output Volume names (separated by |) >> -p proceed inspite of errors >> -v verbose >> -w<dir> specify working directory (default /tmp) >> -? print this message >> >> I have the bacula services turned off and am referencing the device >> names in bacula-sd.conf. The storage devices are tape drives in a >> Dell TL-2000 tape library and I have tapes mounted in their respective >> drives. If anyone could offer some assistance I would appreciate it. > Thanks. >> > > It looks from that you are missing the input-archive and output-archive. > Although I am not at the moment sure what is expected for these (device > names? /dev/nst0 ...) > > John Hi, Could you try something like this: bcopy -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 /dev/nst2 /dev/nst3 I have never used bcopy with two tape drives. In the bcopy documentation is a note about that this compliance with two tape drives has been never tested. In addition I suggest to add debug to your bcopy command, eg. bcopy -d 400 -c /etc/bacula/bacula-sd.conf -i LTO-4-0 -o LTO-4-1 /dev/nst2 /dev/nst3 Good luck! :) gani |