DOCUMENTATION: How to restore NT File System permissions only (including share permissions if applicable) to existing folders and their sub-folders without restoring the folder contents

Article:TECH43714  |  Created: 2005-01-20  |  Updated: 2006-01-17  |  Article URL http://www.symantec.com/docs/TECH43714
Article Type
Technical Solution


Environment

Issue



DOCUMENTATION: How to restore NT File System permissions only (including share permissions if applicable) to existing folders and their sub-folders without restoring the folder contents

Solution



Manuals:
VERITAS NetBackup (tm) 4.5 and 5.0 User's Guide for Windows, p. 10
VERITAS NetBackup (tm) 5.1 Backup, Archive and Restore Getting Started Guide, p. 16

Modification Type: Addition (how to)

Modification: How to restore NT File System permissions only (including share permissions if applicable) to existing folders and their sub-folders without restoring the folder contents.

The NetBackup Backup, Archive and Restore user interface does not allow you to restore just a folder or just the folder structure without restoring some of the folder contents. This is a problem in the event that the NTFS permissions were accidentally removed from a folder or share, but the folder/share contents are intact. In this situation, the administrator would only need to restore the folder/share permissions and not some or all of the contents of that folder.

Example:
It is necessary to feed bprestore a list of selections to restore and not restore from a list file (text file). The following example will restore C:\temp and three subfolders,  but no files contained therein:

1. From the parent directory on the file system to which you would like to restore permissions, run 'dir /s /ad /B' and output results to a file

2. Use a text editor to cut/paste the resulting dir command output file and insert exclude statements for each until your list file list looks something like this (and name it restorelist.txt):

C:\temp\
!C:\temp\*
C:\temp\misc\
!C:\temp\misc\*
C:\temp\MP2\
!C:\temp\MP2\*
C:\temp\unzip\
!C:\temp\unzip\*

Note: Lines starting with a '!' and ending with '*' are exclusions. Those lines exclude any files and subfolders from being restored (overwritten).


3. The bprestore command syntax is: bprestore -s <start_date> -e <end_date> <path_folder_to_be_restored\> <!path_folder_to_be_restored\*>

Example:
The following command will restore the folders within the list file restorelist.txt from a backup performed on 5/13/2005 between 8AM and 9:12AM:

bprestore -s 05/13/2005 08:00:00 -e 05/13/2005 09:12:00 -f c:\restorelist.txt


As a result, the folders and their permissions are recreated,  but none of the files contained inside the folders are restored (overwritten).





Legacy ID



279079


Article URL http://www.symantec.com/docs/TECH43714


Terms of use for this information are found in Legal Notices