- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problems with 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
04-07-2003 01:55 PM
04-07-2003 01:55 PM
Problems with tar
The following from a Tru64 system is tarred up:
subdir/
subdir/subdir2/
subdir/subdir2/testfile2
subdir/testfile1
The resulting tar file works on all other Tru64 boxes when untarring it. IE: it creates the directories and files as expected. On any other HPUX system, we get:
tar: ./subdir - cannot create
./subdir not a directory
Everything under that subdir fails with the same or similar error. Has anyone run into this when moving a tar from from Tru64 to HPUX? If so, what causes it? More importantly, what fixes it?
scott
ps this happens on our 10.20 and 11i systems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 01:58 PM
04-07-2003 01:58 PM
Re: Problems with tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 02:25 PM
04-07-2003 02:25 PM
Re: Problems with tar
tar -cf /tmp/sdb.tar ./ (to get entire current directory and below).
Have also tried:
tar -cf /tmp/sdb.tar ./perl (to get perl subdir and all below it (only)).
the tar completes successfully with either command. The restore command looks like this:
tar -xf sdb.tar
During this restore is when the previously mentioned errors pop up (whether as root or plain user).
A tar -tf sdb.tar shows that the tar file contains the subdirs and files as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 04:54 PM
04-07-2003 04:54 PM
Re: Problems with tar
Can you check the permission of the parent dir. Do you have access to create files / sub-dirs under the dir, in which you are tring you extract the tar image.
Also check with the following.
Use tar -cf /tmp/name.tar * (* instead of ./).
Srini.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 05:23 PM
04-07-2003 05:23 PM
Re: Problems with tar
tar -tvf /dev/rmt/0m
Regarding the above suggestion to use relative backups instead of absolute:
absolute = /dir/file
relative - ./dir/file
Just remember that when you restore absolute you'll also overwrite.
Try working with PAX. PAX is the ignite backup utility and works with TAR and CPIO as well. Also, it has the nice feature of a relative restore with an absolute backup:
pax -r -s,/home/users,/home/users2, -f /tmp/users.tar
Finally, beyond a permission problem on the directory somewhere, I don't see why this should be happening. :-(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 05:45 PM
04-07-2003 05:45 PM
Re: Problems with tar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 05:46 PM
04-07-2003 05:46 PM