Forum Discussion

Mark_Rolfzen's avatar
13 years ago
Solved

Restoring specific files from multiple backups from a specific server

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

 

  • 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

4 Replies

  • 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

  • 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
  • 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!)