- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Preserving SGID with tar/gtar
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
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
тАО07-07-2002 02:38 AM
тАО07-07-2002 02:38 AM
Preserving SGID with tar/gtar
I would like to transfer about 50GB of filesystems using a S-DLT tape.
From the man pages of tar/gtar, there does not seem to have any options of preserving the SGID or SUID.
Are there any other ways of preserving the SGID and SUID of these filesystem, besides gtar or tar for such data transfer?
If a script is required to automate such task, could someone kindly show how it's done?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2002 02:47 AM
тАО07-07-2002 02:47 AM
Re: Preserving SGID with tar/gtar
tar -p
this will preseve file ownerships and cause files files to be restored to there original modes and ownerships.
you could also consider using cpio to do this which is quicker than tar.
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2002 02:54 AM
тАО07-07-2002 02:54 AM
Re: Preserving SGID with tar/gtar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2002 04:12 AM
тАО07-07-2002 04:12 AM
Re: Preserving SGID with tar/gtar
If you have backed up your files with tar and when restoring them you encounter the SGID and SUID to be lost it may be because you are not root. System protections prevent the ordinary user from executing chown and chmod resulting in the error being ignored and the ownership being set to that of the restoring process. The SUID , SGID and stick bit information are restored as allowed by protections defined by chmod if the chown operation was successful.
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2002 04:27 AM
тАО07-07-2002 04:27 AM
Re: Preserving SGID with tar/gtar
Use cpio, this is quicker and safer.
Regards
Manoj