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
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsMac OS X operating systemsWindows operating systemsNote: This option is ignored if the replace option is set to No.
AIX operating systemsHP-UX operating systemsLinux operating systemsOracle Solaris operating systemsMac OS X operating systemsWindows operating systems

Supported Clients

This option is valid for all clients. The Tivoli® Storage Manager client API does not support this option.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-IFNewer-----------------------------------------------------><

Parameters

There are no parameters for this option.

Examples

AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsCommand line:
AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsMac OS X operating systemsdsmc restore "/Users/grover/Documents/*" -sub=y -rep=y -ifnewer
AIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsAIX operating systemsHP-UX operating systemsLinux operating systemsMac OS X operating systemsOracle Solaris operating systemsdsmc restore "/home/grover/*" -sub=y -rep=y -ifnewer
Windows operating systemsCommand line:
Windows operating systemsdsmc restore -ifnewer d:\logs\*.log