cancel
Showing results for 
Search instead for 
Did you mean: 

Backup data from different client

RonCaplinger
Level 6
Is there a way to back up data from, say, ClientA, but have the data show up in the "Backup, Archive, Restore" interface as being backed up from a different server, say ClientB?

We have to instances where we find a need to do this:
1.  We back up our Solaris Zones from the Global Zone, and have trouble locating which Global Zone contained which Local Zone.  It would help if the Client Names being backed up matched the name of the Local Zone, instead of locating the directory for that Local Zone in the Global Zone.

2.  We have a one-time need to back up 1.5 TB of data at one location from a client located here, but want it to show up for restores as if it had been backed up by another client at another location.  Short of bacvking it up to tape, carrying the tape to the other location, restoring it, then backing it up again, we'd rather just back it up here and be done with it.

Any idea how we might do this?

Thanks in advance!
1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
I have only been able to test this today. Stopped NBU first, then copied the entire date-stamp folder to ClientB folder:

# cd /usr/openv/netbackup/db/images
# cd v240-1
# cp -rp 1255000000 ../v240-2
# cd ../v240-2
# ls
1252000000  1255000000
# cd 1255000000
ls
catstore                  v204-1_1255427561_FULL
tmp                       v204-1_1255427561_FULL.f

Started NBU. Tested listing of backed up files for both clients - OK.
Selected 1 file for client v240-2 to restore to /tmp/test:
0/13/2009 12:09:08 - begin Restore
10/13/2009 12:09:09 - restoring from image v240-1_1255427561
....
10/13/2009 12:09:16 - end Restore; elapsed time 0:00:08
the requested operation was successfully completed (0)

root@v240-2 # ls -l
total 240
-rw-r--r--   1 root     root      116427 May 28 10:30 README.122058-12

View solution in original post

8 REPLIES 8

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
Easiest way?
2: Rename client folder under images folder on the master server. Do this while NBU is down on master server.
1: If you install NBU client in each local zone, you can back them up as individual clients.

RonCaplinger
Level 6
Thanks for the response, Marianne!

Renaming that folder under /usr/openv/netbackup/db/images would not change it permanently, though, right?  So if we go to pull up the backups for ClientB 6 months from now, this backup won't show up. 

We need to permanently make the NBU catalog think this backup was done on ClientB. 

As for the zones, we would rather not install the NBU client on each local zone.  We just want to back up via the Global Zone.  Is this possible?  I know the VMWare VCB backups can look like the files were backed up from the client when, in reality, they were backed up by the VCB proxy/media server from the SAN.  Anything like this for Solaris Zones?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
Renaming the folder under images is permanent, provided it's a once-off like you said. If you rename ClientA folder to ClientB it will stay like that, but if you keep on backing up ClientA after the rename, a new folder for ClientA will be created.
Unfortunately there is no VCB equivalent for Solaris zones and leaves you with only 2 choices: 1 - the way you're doing it now; 2 - installing nbu client in each local zone... For more info:
http://seer.entsupport.symantec.com/docs/315561.htm

RonCaplinger
Level 6
If both ClientA and ClientB already exist and have valid images, and we have one backup image from ClientA to show up under ClientB, can we simply copy the data from the directory for this one backup under ClientA to show up under ClientB?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
It will do no harm to try it. Copying is much safer than rename. Just do it with NBU daemons down on the master.
I would've liked to quickly test it for you, but my lab installation is currently 'broken'...

Rakesh_Khandelw
Level 6
Yes, you can copy particular image from one clientA folder to clientB folder. If you are taking these images to another master server then make sure you update bp.conf file with FORCE_RESTORE_MEDIA_SERVER unless you have same names on other side.

RonCaplinger
Level 6
I tried to copy the files (the *_UBAK & *_UBAK.f) to the folder of another client and it shows up in the Backup history as we wanted, but I cannot select it for restore.  Every time I access the catalog for the first time, or if I try to select this one image, I get "Database system error (status 220)".  This is occurring on both the original copy in the directory for CleitnA as well as the directory for ClientB.

I'm guessing it's because I did this without taking down NBU, particularly the database daemon. 

Is there any way to fix this?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
I have only been able to test this today. Stopped NBU first, then copied the entire date-stamp folder to ClientB folder:

# cd /usr/openv/netbackup/db/images
# cd v240-1
# cp -rp 1255000000 ../v240-2
# cd ../v240-2
# ls
1252000000  1255000000
# cd 1255000000
ls
catstore                  v204-1_1255427561_FULL
tmp                       v204-1_1255427561_FULL.f

Started NBU. Tested listing of backed up files for both clients - OK.
Selected 1 file for client v240-2 to restore to /tmp/test:
0/13/2009 12:09:08 - begin Restore
10/13/2009 12:09:09 - restoring from image v240-1_1255427561
....
10/13/2009 12:09:16 - end Restore; elapsed time 0:00:08
the requested operation was successfully completed (0)

root@v240-2 # ls -l
total 240
-rw-r--r--   1 root     root      116427 May 28 10:30 README.122058-12