Re: Copy a tape with a single drive...

Marco Gaiarin <[email protected]>
Newsgroups gmane.comp.bacula.user
Organization Il gaio usa sempre TIN per le liste, fallo anche tu!!!
Message-ID <[email protected]>
Mandi! Marco Gaiarin
  In chel di` si favelave...

> I've done a quick test, and seems work... but still i ask for feedback.

OK, definitively work; supposing to have a tape storage 'LTO5Storage' and a
media labelled 'PPPVE3_0001', you need firstly to create the boostrap file:

	echo 'volume=PPPVE3_0001' > /tmp/PPPVE3_0001.bsr

Suppose also to have a file storage called 'MultiFileStorage0', that write
file in dir '/rpool-backup/bacula'; it is needed to pre-create the file, so:

	touch /rpool-backup/bacula/PPPVE3_0001_Copy

after that, you can simply copy the media with:

	bcopy LTO5Storage MultiFileStorage0 -i PPPVE3_0001 -o PPPVE3_0001_Copy -b /tmp/PPPVE3_0001.bsr

volume '/rpool-backup/bacula/PPPVE3_0001_Copy' get automatically labeled.
Then you can copy back volume on a new tape with (bootstrap file not needed):

	bcopy MultiFileStorage0 LTO5Storage -i PPPVE3_0001_Copy

also, destination tape get labeled and written. And of course you can remove
the intermediate file media:

	rm /rpool-backup/bacula/PPPVE3_0001_Copy


File media 'PPPVE3_0001_Copy' does not need to be in a pool, so the copy is
perfectly transparent to bacula.


FYI.

--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.