PDA

View Full Version : [ubuntu] tar backup on tape



Koybe
December 17th, 2008, 03:27 PM
Hello,

I'm trying to use tar to backup folders on a tape.

I'm using
tar -cf /dev/st0 MyfilesEverything is going fine, then I try to read the tape :
tarr -tf /dev/st0.... well perfect.

then I try to restore:
tar -xf /dev/st0 "MyFile" -C /restore_directory The tape is running for some time, like it's looking or the file, everything complete sucessfuly... but i got nothing in my restore directory.

Any clue?

ikonia
December 17th, 2008, 05:39 PM
your not using the auto-rewind device, try doing an mt -f /dev/st0 rewind first

Koybe
December 21st, 2008, 10:38 AM
Thank you for your reply. I tried but it didn't help.

Any other ideas?

Koybe
December 21st, 2008, 04:50 PM
OK, I found it. -C seems to be an invalid otion with tape. Not using it result in extracting to current directory.

Thanks anyway!