acpuck1
January 4th, 2012, 06:46 PM
Sorry for posting what seems like it should be pretty straight forward. I couldn't find a solution and thought I would try here.
I am trying to backup and NFS share to a magnetic tape drive. However the tape drive does not hook directly into the NFS server, it is plugged into another server that has a SCSI port. I cannot simply tar -czf /dev/st0 the share from server hooked into the tape drive because of permissions.
What I have done is tar the share from the NFS server and copied it to the backup server with the tape drive. (This will all be done daily through scripting). Now, here is my problem, I need to copy the tarball onto the tape but I cannot find a command that will work. I tried straight up cp the_backup.tar.gz /dev/st0 and that does not work. I could get it to work if I extracted the tar to a directory and the compressed it again with tar -czf /dev/st0 /extracted_directory.
Any ideas of a command that will simply put an already compressed tar ball onto a magnetic tape drive?
I am trying to backup and NFS share to a magnetic tape drive. However the tape drive does not hook directly into the NFS server, it is plugged into another server that has a SCSI port. I cannot simply tar -czf /dev/st0 the share from server hooked into the tape drive because of permissions.
What I have done is tar the share from the NFS server and copied it to the backup server with the tape drive. (This will all be done daily through scripting). Now, here is my problem, I need to copy the tarball onto the tape but I cannot find a command that will work. I tried straight up cp the_backup.tar.gz /dev/st0 and that does not work. I could get it to work if I extracted the tar to a directory and the compressed it again with tar -czf /dev/st0 /extracted_directory.
Any ideas of a command that will simply put an already compressed tar ball onto a magnetic tape drive?