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.

-- 




_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to