overwrite
Command: recover file
--overwrite={always|older|never}
In the recover file
command, the parameter specifies what to do if the program finds in the target folder a file that has the same name as in the backup.
Available values of the parameter are as follows:
always
(by default) - this will give the file in the backup priority over the file on the hard disk.older
- this will give priority to the most recent file modification, whether it be in the backup or on the disk.never
- this will give the file on the hard disk priority over the file in the backup.
If you allow files to be overwritten, you still have an option to prevent overwriting of specific files by excluding them from the recovery operation.
Commands: recover exchange_database
, recover exchange_mailbox
, recover mssql_database
--overwrite
In the recover exchange_database
command, the parameter allows the overwriting of the existing database or storage group (if the overwriting is allowed in the properties of the selected databases). If the parameter is not specified and the destination database or storage group exists, the operation will fail.
In the recover exchange_mailbox
command, the parameter allows the overwriting of items (e-mails, calendar events, contacts, tasks, etc.) that have the same IDs as those in the backup. If the parameter is not specified, such items in the target mailbox will be skipped.
If you recover the same items more than once, each subsequent recovery will duplicate the items because original item IDs change after the overwriting.
In the recover mssql_database
command, the parameter allows the overwriting of databases that have the same names as those in the backup. If the parameter is not specified, the command execution result depends on the --autorename
parameter. If the --autorename
parameter is present, the command will rename the recovered database. Otherwise, the database will be skipped during the recovery. If you specify both the --autorename
and the --overwrite
parameters, an error will occur.