Forum Discussion

jmkn04's avatar
jmkn04
Level 2
15 years ago

netbackup restore to different server/user


Hello all,

I've recently logged a call with the Symantec help desk regards netbackup and restoring backups to a different server/user. They've told me that the user on target client must be in the same unix group as the user that did the backup. This complicates the restore process somewhat as I need to recompile Oracle Home's etc to get this working. What would be simplier and I'm sure is supported, is doing the restore on another client independant of what user:group combination did the backup.

My problem: Backup taken on:

Server_A:User_A

Now I want to restore the above backup to:

Server_Z:User_Z

Can anyone shed some light on how to configure this on the netbackup client? Is any netabckup server config required?

A bplist from the client I'm trying to restore from, Server_Z (only seems to work once the user is in the same unix group, probably due to group permissions below) showing backup sets:

-rw-rw---- fred  fred     14417920 Apr 07 21:14 /9rlai8q0_1_1
-rw-rw---- fred  fred      3932160 Apr 07 21:14 /9slai8q0_1_1
-rw-rw---- fred  fred      2097152 Apr 07 21:11 /9qlai8jb_1_1
-rw-rw---- fred  fred    349437952 Apr 07 20:39 /9plai6no_1_1
-rw-rw---- fred  fred    335020032 Apr 07 20:39 /9olai6no_1_1
-rw-rw---- fred  fred    759169024 Apr 07 20:31 /9nlai68k_1_1
-rw-rw---- fred  fred    793772032 Apr 07 20:24 /9mlai5qv_1_1
-rw-rw---- fred  fred    792723456 Apr 07 20:23 /9llai5pq_1_1
-rw-rw---- fred  fred    829947904 Apr 07 20:14 /9klai59l_1_1
-rw-rw---- fred  fred    826015744 Apr 07 20:14 /9jlai58r_1_1


bp.conf file on client (Server_Z):
SERVER = fred1-bkp
CLIENT_NAME = fred2-bkp


We're on NetBackup 6.5 on Solaris 5.10.

Any help very much appreciated.

Cheers.



  • If you use the option 'BKUP_IMAGE_PERM = ANY' during your backup it will set read access for the everyone group on the backup image, so your back sets will look like this ->
    -rw-rw-r-- fred  fred     14417920 Apr 07 21:14 /9rlai8q0_1_1
    -rw-rw-r-- fred  fred      3932160 Apr 07 21:14 /9slai8q0_1_1
    -rw-rw-r-- fred  fred      2097152 Apr 07 21:11 /9qlai8jb_1_1


    Have a look at this page details on how to use it, you'll need to take new backups of the source database with the option set ->
    http://seer.entsupport.symantec.com/docs/326402.htm

    Daniel
  • What about setting the user on ServerZ in the secondary group of ServerA ?

    Give it a try. But it might not work. And if this is the case you do not have any chance.

    You did not tell us that this is a oracle backup you want to restore, which complicates everything.

  • Thanks Christoph,

    Yes. Oracle RMAN restore.

    I did try adding the group as a secondary group on Server_Z:User_Z  which didn't work. The group must be the primary group for it to work.

    I have gone through the Admin guide but can't find any config option which might get this working. I would have thought this kind of restore was fairly standard.

    Are you saying this is standard expected behavour with NetBackup?

    Cheers.

  • If you use the option 'BKUP_IMAGE_PERM = ANY' during your backup it will set read access for the everyone group on the backup image, so your back sets will look like this ->
    -rw-rw-r-- fred  fred     14417920 Apr 07 21:14 /9rlai8q0_1_1
    -rw-rw-r-- fred  fred      3932160 Apr 07 21:14 /9slai8q0_1_1
    -rw-rw-r-- fred  fred      2097152 Apr 07 21:11 /9qlai8jb_1_1


    Have a look at this page details on how to use it, you'll need to take new backups of the source database with the option set ->
    http://seer.entsupport.symantec.com/docs/326402.htm

    Daniel