cancel
Showing results for 
Search instead for 
Did you mean: 

Restoring specific files from multiple backups from a specific server

Mark_Rolfzen
Level 2

We are running NetBackup 7.5.0.3 on Windows Enterprise Server 2008 R2.  I have multiple files that I need restored that are all from a specific server, but are all in different folders from different days.  All of the files will be of the same filename, with a date vairable.  In other words, all the file names will follow this format;

YYYY-MM-DD_188785-1274242.pdf.gzip

The fles are all from the same server, but are in different folders.  Here is an example of what it may look like

/BACKUP/2005-06-03/2005-06-03_188785-1274242.pdf.gzip

/BACKUP/2005-07-05/2005-07-05_188785-1274242.pdf.gzip

If the file was created on the same day every month, it would not be that big an issue, I could hunt and peck for the 100 or so files I need, but it can vary by +/- four days every month.

What I would like to know is if it is possible to write some sort of script that could go out and find all backup images of the specific server and restore all files that fit this variable 2005-??-??_188785-1274242.pdf.gzip

 

1 ACCEPTED SOLUTION

Accepted Solutions

Andy_Welburn
Level 6

If you'd rather use the GUI, you could always *try* to use the search functionality within the BAR GUI.

  • Highlight the required backups within the "NetBackup History" window.
  • 'Contract' the "All Folders" window so only the client name is showing.
  • Click on the 'Binoculars' to open the "Search Backups" window.
  • Replace 'Search Folder:' entry with 2005-*_188785-1274242.pdf.gzip (or similar wildcard entry)
  • The "All Folders" window *should* now expand to show the folders that contain any matches

View solution in original post

4 REPLIES 4

Nicolai
Moderator
Moderator
Partner    VIP   

Yes that possible. Do a bplist like this : 

bplist -B -C  host.acme.com  -l -R -t 13 -s 06/05/2010 / | findstr "2005-*-*_188785-1274242.pdf.gzip"

that should list all the files you require. Using power shell or VB you can take the input from bplist and call bprestore. You can  either restore the files one by one or restore them in a bunch using the bprestore -f option. 

If you wan to place all the restored file in a restore folder you might find the tech note interesting also:

How to use the bprestore command to redirect a restore to an alternate path on the client

http://www.symantec.com/docs/TECH21196

Andy_Welburn
Level 6

If you'd rather use the GUI, you could always *try* to use the search functionality within the BAR GUI.

  • Highlight the required backups within the "NetBackup History" window.
  • 'Contract' the "All Folders" window so only the client name is showing.
  • Click on the 'Binoculars' to open the "Search Backups" window.
  • Replace 'Search Folder:' entry with 2005-*_188785-1274242.pdf.gzip (or similar wildcard entry)
  • The "All Folders" window *should* now expand to show the folders that contain any matches

Mark_Rolfzen
Level 2

Thanks for the info.  This worked as you described. 

Andy_Welburn
Level 6

If Nicolai provided the method you successfully used then it would probably be more appropriate if you marked his post as the solution (altho' I am partial to the points & the kudos myself too!)