cancel
Showing results for 
Search instead for 
Did you mean: 

How to Retain ownership and permissions while restoring?

nbu123
Level 5

Hi All,

 

I need to do the restore of some file system from one server to another server.

What needs to be done in order to get the same ownership and permissions restored to the destination server?

 

 

Thanks in Advance

3 REPLIES 3

sri_vani
Level 6
Partner

Make sure uid and gid(user and group) are available in the destination server with same user name and grp name as same as source server for the files you are trying to restore and go ahead try restore.

Will_Restore
Level 6

By default, the NetBackup-modified GNU tar (/usr/openv/netbackup/bin/tar)
restores ACLs along with file and directory data.


However, in some situations the ACLs cannot be restored to the file data, as follows:
■ Where the restore is cross-platform. (Examples: An AIX ACL restored to a
Solaris client or a Windows ACL restored to an HP client.)
■ When a tar other than the NetBackup modified tar is used to restore files.


In these instances, NetBackup stores the ACL information in a series of generated
files in the root directory using the following naming form:
.SeCuRiTy.nnnn


These files can be deleted or can be read and the ACLs regenerated by hand.
More information is available in the NetBackup Administrator's Guide, Volume II.

Marianne
Level 6
Partner    VIP    Accredited Certified

As per above posts, NBU will restore the data with same UID and GID as on the source system.

Compare /etc/passwd on source and destination client to ensure same UID and GID.