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

Michel Figgins <[email protected]>
Newsgroups gmane.comp.bacula.user
Message-ID <[email protected]>
Just a general question: 
Why would dd if=/dev/nst0 of=somefile care about tape logical files?

- Michel

-----Original Message-----
From: Bill Arlofski via Bacula-users <[email protected]> 
Sent: Friday, January 31, 2025 10:08 AM
To: Martin Simmons <[email protected]>
Cc: [email protected]
Subject: Re: [Bacula-users] Copy a tape with a single drive...

On 1/31/25 3:48 AM, Martin Simmons wrote:
>>>>>> On Thu, 30 Jan 2025 17:20:21 +0000, Bill Arlofski via Bacula-users said:
>>
>> If I understand correctly, you just want to copy an entire tape to another tape but only have one tape drive?
>>
>> If yes, you can do this entirely outside of Bacula by using `dd` to 
>> read the entire tape to a file on disk, then use `dd` again to read the file and write to the new tape.
> 
> I suspect that isn't easy, because tapes are split into logical files 
> (BaculaSD's "MaximumFileSize").
> 
> That means you have to run dd repeatedly (to separate disk files) to 
> get every tape logical file, then the same number of dds to write 
> those logical files to the new tape and then maybe use mt weof the 
> correct number of times at the end to match BaculaSD's "TWO EOF" setting?
> 
> __Martin

Ahhh! Yes, you are exactly correct Martin! I hadn't considered the file markers! 🤦


Best regards,
Bill

--
Bill Arlofski
[email protected]

_______________________________________________
Bacula-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-users
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.