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
Discussions
Discussions
Forums
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
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
тАО10-11-2010 05:16 AM
тАО10-11-2010 05:16 AM
tar -cvf /home/test.tar /home/sfdm*
done created a tar file inside home named as test.tar.
when i am tryting to untar it, it is untaring but go and resides on the original place as /home/sfdm.
I need to restore to diff location as /home/test1/ inside i need to restore it??
command plz?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 05:19 AM
тАО10-11-2010 05:19 AM
Re: Tar
then tar -cvf /home/test.tar *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 05:24 AM
тАО10-11-2010 05:24 AM
Re: Tar
[as-tmp]/home/sfmdb
did but nothing get tared on that file 0KB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 05:24 AM
тАО10-11-2010 05:24 AM
Re: Tar
You have two way to tar something :
With the method that you have use : In this case tar and untar use abolute PATH because the tar file is made whit absolute PATH
With relative PATH : If you tar something by using relative PATH your resulting tar file will can be untar at anyway ext ( cd /home ; tar *sfdm* test.tar
Have a good day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 05:26 AM
тАО10-11-2010 05:26 AM
Re: Tar
tar: s: unknown option
tar: usage tar [-]{txruc}[eONvVwAfblhm{op}][0-7[lmh]] [tapefile] [blocksize] [[-C directory] file] ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 06:03 AM
тАО10-11-2010 06:03 AM
Re: Tar
Hope u know the basics of Tar,
to untar use the below command,
tar -xvf filename.tar path where to extract
u can refer below link,
http://www.sikh-history.com/computers/unix/commands.html
Hope this solves ur issue
Please assign points
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 06:09 AM
тАО10-11-2010 06:09 AM
Re: Tar
[rx26-207]/sap
# cd /sap/t1
[rx26-207]/sap/t1
# ll
total 0
[rx26-207]/sap/t1
#
no it dosent work out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 06:22 AM
тАО10-11-2010 06:22 AM
Re: Tar
#cp home.tar /sap/t1
#cd /sap/t1
#tar -xvf home.tar .
It will definitely work if not check the tar file size.
Hope this solves ur issue
Regards
Vishnu Khandare
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-11-2010 07:03 AM
тАО10-11-2010 07:03 AM
SolutionThere are several ways to do this:
1) tar it off again, this time relative:
tar -cvf /home/test.tar -C /home sfdm # list each one under sfdm*
(Probably easier to go to /home and use wildcards.)
2) Give up on tar and use pax(1) -s:
pax -r -v -f /home/test.tar '-s:/home/::'
3) Give up on tar and use gnu tar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2010 09:47 AM
тАО10-18-2010 09:47 AM
Re: Tar
tar cvf test.tar sfdm*
cd /home/test1
tar xvf /home/test.tar
This will create a relative tar file called test.tar in the /home directory and then extract that information to the /home/test1 directory.