The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-06-2007
d3m00n d3m00n is offline
Registered User
 

Join Date: Aug 2007
Posts: 7
tape drives vs. tar with multiple directories

Hello,

I have a little problem with backup & restoring files from tape drive.

I am adding 3 directories to my tape, and it is OK:

hades# tar -cvf /dev/nsa0 test test1 restore
a test
a test/level1
a test/myharddisk.img
a test1
a test1/level1
a test1/myharddisk.img
a test1/test.img
a restore
a restore/.cshrc
a restore/.mail_aliases
a restore/.login
a restore/.rhosts
a restore/.login_conf
a restore/.mailrc
a restore/.profile
a restore/.shrc
a restore/myharddisk.img
a restore/test
a restore/tarlist
a restore/test1
a restore/terlist
a restore/tapefilelist
a restore/test1/level1
a restore/test1/myharddisk.img
a restore/test1/test.img
a restore/test/level1
a restore/test/myharddisk.img

When I am checking tape I see only 1st directory:

hades# tar -tvf /dev/nsa0
drwxr-xr-x 0 root peter 0 Dec 5 18:05 test
drwxr-xr-x 0 root peter 0 Dec 5 18:04 test/level1
-rw-r--r-- 0 root peter 10000000 Dec 5 18:05 test/myharddisk.img

Backup contents of tape and I am a little supprissed.

hades# tar -xvf /dev/nsa0
x test
x test/level1
x test/myharddisk.img
hades# ls -l
total 2
drwxr-xr-x 3 root peter 512 Dec 5 18:05 test
hades#

1. Do you have any idea what is wrong?
2. How to check structure of files added to tape drive using tar?
When I am using
tar -tvf /dev/nsa0
I always see the first directory.
Reply With Quote
Forum Sponsor