Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tar backup version 3.2

Status
Not open for further replies.

1970GTO

Technical User
Dec 11, 2003
2
US
I am trying to backup multiple directories using tar. We are on version 3.2 using a 4mm dds2 tape drive. This is the command that I tried.
tar -cvf/dev/rmt0 ./home ./u5

It backed up /home then stopped. Any ideas?
Thanks
 
try:

tar -c -C /home -C /u5 to tar to a tape.
 
So what will the restore command be? I want to run an image once a week and tar on the other days.
 
I'm not sure I understand what you mean by "run an image".

But to restore from the tape, I believe this is the command. Test with a temporary directory in some filesystem:

tar -xvf /dev/rmt0 /home /u5

or

tar -xvf /home /u5
 

bi: the command "tar -xvf /home /u5" will not work, as it specifies "/home" as the archive to extract from.
tar -xv /home /u5 may work if $TAPE variable is set to /dev/rmt0
Anyhow, 170TOGO should try GNU tar, because that implementation lacks these annoying bugs. - but here are little incompatibilities...

--Trifo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top