- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: tar options
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:32 PM
08-16-2004 07:32 PM
is this right?
tar -cvf /to/1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:44 PM
08-16-2004 07:44 PM
Re: tar options
# cd
# tar xvf
That should work.
Regards,
ps. u can get device file name with
# ioscan -fnC tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:45 PM
08-16-2004 07:45 PM
Re: tar options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:49 PM
08-16-2004 07:49 PM
Re: tar options
It depends on how you have taken the backup.
if you have used the path as
#cd /test
#tar -cvf /dev/rmt/0m .
then you have to be in that directory OR
you have takne this way
# tar -cvf /dev/rmt/0m /test
then no you don't have to be in that directory.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:49 PM
08-16-2004 07:49 PM
Re: tar options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 07:59 PM
08-16-2004 07:59 PM
Re: tar options
if your files are already on the tape and you want to recover them to your system then
go to the FS you want to restore
cd /opt/restore (for example)
and then
tar xfv /dev/rmt/Xm (where X is the device number)
tar cfv is for creating archive
tar xfv is for extracting archive
HTH
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 08:01 PM
08-16-2004 08:01 PM
Re: tar options
For your second post :
Yes
But be careful as this will overwrite your existing files
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 08:04 PM
08-16-2004 08:04 PM
Re: tar options
Ques: can i extract all the files w/o specifying any distinct files?
Ans: Yes
# tar xvf /dev/rmt/0m
where i assume /dev/rmt/0m is your dds tape drive.
This will extract all the file in the tape to the current directory. If the backup is taken with absolute path then they will go into thier respective deriectory automatically. You can verify this by:
# tar tvf /dev/rmt/0m
This display the content of tape. If the file are displayed begining with /../.. then it is absolute path or if ./../ then it is relative path.
If you want to restore only specific files from the tape then you have specify the filename at the end of the command like:
# tar xvf /dev/rmt/0m file1 file2 file3 ..
This will restore file1,file2,file3,... etc in the current directory.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 08:14 PM
08-16-2004 08:14 PM
Re: tar options
just to be curious : What was the difference between Shaiks first and my post (0 and 10 points) ?
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2004 08:19 PM
08-16-2004 08:19 PM
Re: tar options
tar -xvf
It is good to check the all files in the tap drive as,
tar -tv /dev/rmt/0m
It will list out the files in the tape drive.
You can select the files to extract as,
tar -wxvf /dev/rmt/0m
It will ask user input to extract / not.
# tar -wxvf tt.tar
x rw-r--r-- 0/3 5 Aug 17 16:32 2004 tst.txt: y
x tst.txt, 5 bytes, 1 tape blocks
x rw-r--r-- 0/3 4 Aug 17 16:32 2004 tt.txt: y
x tt.txt, 4 bytes, 1 tape blocks
It will be used to extract easily and in effective mode.