You can perform self-service file-level restores of file systems using the
ddfsrc command with the
-I option.
Before starting the command, create a file that contains the list of files to be restored. Provide the location of this file as an input to the
-I option, as shown in the following example.
ddfsrc command with input file specified
ddfsrc -h DFA_SI_DEVICE_PATH=Protection storage unit -h DFA_SI_DD_HOST=Protection storage system IP address -h DFA_SI_DD_USER=Protection storage system username -S
savetime-value -I
path-of-file-containing-list-of-files-for-restore -i R -d
destination-path-for-restoring-files
NOTE:In this command,
The parameter
R renames the file.
If you replace the parameter
R with
Y, the file is overwritten.
If you use
-g at the end of the command, only the specified file is restored. Else, the entire directory structure is restored to the destination folder. For example, if the file
D:\Folder\file1.txt is restored to
G:\CFLR,
Without
-g, the file is restored to
G:\CFLR\D\Folder\file1.txt.
With
-g, the file is restored to
G:\CFLR\file1.txt.
The following steps provide more detail:
Use the
ddfsadmin command to list all the available backups. If you know the save set ID of the backup from which you want to restore, skip this step.
For example, the following command lists all backups taken in the last 55 days.