Ifnewer
The ifnewer option replaces an existing file with the latest backup version only if the backup version is newer than the existing file.
Only active backups are considered unless you also use the inactive or latest options.
Note: Directory entries are replaced with the latest backup version, whether the backup version is older or newer than the existing version.
Use the ifnewer option with the following commands:
- restore
- restore backupset
- restore group
- retrieve
Note: This option is ignored if the replace option is set to
No.
Supported Clients
This option is valid for all clients. The IBM Spectrum® Protect API does not support this option.
Syntax
Parameters
There are no parameters for this option.
Examples
- Command line:
dsmc restore "/Users/grover/Documents/*" -sub=y -rep=y -ifnewer
- Command line:
dsmc restore -ifnewer d:\logs\*.log