- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Question about tar
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
09-25-2003 01:39 AM
09-25-2003 01:39 AM
I´m doing a tar of the full system:
tar cvf /dev/st0 /
When I want to restore a single file in a directory different of the original, i.e:
cd /tmp
tar xvf /dev/st0 home/user1/myfile.txt
I have the file with the full path : /tmp/home/user1/myfile.txt
How can I restore the file directly in /tmp?
Th
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 02:22 AM
09-25-2003 02:22 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 02:23 AM
09-25-2003 02:23 AM
Re: Question about tar
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2003 12:37 PM
09-25-2003 12:37 PM
Re: Question about tar
Most versions of GNU's tar automatically strip the leading /, realising that it's a bad idea, and requires the '-P' switch (--absolute-paths) in order to forcibly save it.
Care to tell us what version of tar you are using ? (tar --version)
In any case, the quick solutions are these:
- use a chroot environment to restore it.
- change the backup routine to 'cd /;tar cvf /dev/st0 .' instead.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2003 10:55 PM
09-28-2003 10:55 PM
Re: Question about tar
You can also use pax (man pax) which is a very powerfull archive reader (read tar and cpio archives).
I hope that's help,
Virgil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2003 10:57 PM
09-28-2003 10:57 PM
Re: Question about tar
I didn't get very well the question.
Use option "-s" at pax! It would do the trick.
Virgil.