AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Permission using GNU tar

    Posted Wed November 11, 2015 10:42 AM

    Originally posted by: adam7764


    Hi, i have a problem using tar.

    We have files greater than 8gb that need to be backed up so have installed GNU tar.

    When restoring at file level the permissions of the directory are lost and give root as the owner. The file permissions remain correct.

    Using standard tar the permissions are restored correctly.

    So neither option is ideal - we cant use tar because of the 8gb limit and we cant use GNU tar because the permissions change.

    Can anyone help?

    Many thanks


    #AIX-Forum


  • 2.  Re: Permission using GNU tar

    Posted Wed November 11, 2015 03:21 PM

    Originally posted by: GarlandJoseph


    Please list the command you used to backup and restore using gnu tar.


    #AIX-Forum


  • 3.  Re: Permission using GNU tar

    Posted Thu November 12, 2015 05:44 AM

    Originally posted by: adam7764


    Hi Joseph, im  logged in as root ,backing up 1 file apex01 in /u05/oradata/ORA1

     

    Permissions for directory ORA1 are:

     

    /u05/oradata>ls -ltr
    drwxr-xr-x    2 oracle   dba             256 12 Nov 10:28 ORA2
    drwxr-xr-x    2 oracle   dba             256 12 Nov 10:28 ORA1

     

    Run gtar command:

     

    gtar -p -cvf /test/gtar1.tar /u05/oradata/ORA1/apex01

     
    cd /test
     
    gtar -p -xvf gtar1.tar
     
    /test/u05/oradata>ls -ltr
     
    drwxr-xr-x    2 root     system          256 12 Nov 10:35 ORA1

     

    The owner and group have changed from oracle dba to root system

     

    If i look at the file itself these permissions are still good.

    cd ORA1
     
    -rw-r-----    1 oracle   dba       558628864 12 Nov 10:25 apex01

     

    Any idea why directory permissions has changed? 

     

    Thanks


    #AIX-Forum