The New-FileSearch
command lets you search for a specific file among the recovery points in a repository, which helps you determine which recovery point you need to mount for a restore.
Usage
The usage for the command is as follows:
New-FileSearch -core [host name] -user [user name] -password [password] -protectedserver [name | IP address] -startdate [start date] -enddate [end date] -filemasks [file masks] -paths [paths] -subdiroff -ntfsfastoff -limitsearch [limit search]
Command Options
The following table describes the options available for the New-FileSearch
command:
Option | Description |
---|---|
-? |
Display this help message. |
-core |
Optional. Remote Core host machine IP address (with an optional port number). By default, the connection is made to the Core installed on the local machine. |
-user |
Optional. The user name for the remote Core host machine. If you specify a user name, you must also provide a password. If none is provided, then the credentials for the logged-on user are used. |
-password |
Optional. The password to the remote Core host machine. If you specify a password, you also have to provide a user name. If none is provided, then the credentials for the logged-on user are used. |
-protectedserver |
Use this option to specify the protected machine for which you want to enable the Oracle archive log mode. |
-startdate |
The earliest date of a period within you want to conduct your search. Use the date pattern "MM/DD/YYYY HH:mm:ss AM." |
-enddate |
The latest date of a period within you want to conduct your search. Use the date pattern "MM/DD/YYYY HH:mm:ss AM." |
-filemasks |
A combination of fixed and wildcard characters to search for the file. It can be one string or an array of strings. All masks should be separated by a space; for example: -filemasks "first" "second ." |
-paths |
Optional. If there are specific directories in which you want to search, use this option to list the paths. It can be one string or an array of strings. All directories should be separated by a space; for example: -paths "E:\" "C:\Program Files." |
-subdiroff |
Optional. By default, the file search is performed in subdirectories. Use this option if you want to turn this feature off and not search in subdirectories. |
-ntfsfastoff |
Optional. By default, the file search is performed using the NTFS fast algorithm. If you want to perform the search without this feature, specify this option. |
-limitsearch |
Optional. Use this option to limit the number of search results. The default value is 1000. |
Examples:
Perform a file search with one file mask:
New-FileSearch -core 10.10.10.10 -user administrator -password 23WE@#$sdd -protectedserver 10.10.10.10 -filemasks "sample"
Perform a file search with multiple file masks in specified directories and without the NTFS fast algorithm:
New-FileSearch -core 10.10.10.10 -user administrator -password 23WE@#$sdd -protectedserver 10.10.10.10 -filemasks "sample" "second" -paths "C:\dir" -ntfsfastoff