You are here: Scripting commands > Restore

Restore

Command RESTORE
Description Initiates the restoration process
Syntax RESTORE <repset> FROM <target> ORIGINAL <original_source> [, OVERWRITE | NOOVERWRITE] [, OVERWRITENEWER | NOOVERWRITENEWER] [, USETARGETDB | NOUSETARGETDB] [, RESTOREDBTOO | NORESTOREDBTOO] [, CHECKSUM | NOCHECKSUM][, ORPHANS | NOORPHANS]
Options
  • repset—Name of the replication set
  • target—Name of the target, an IP address on the target, or a virtual IP address
  • original_source—Name of the original source
  • OVERWRITE—Overwrites files on the source
  • NOOVERWRITE—Does not overwrite files on the source
  • OVERWRITENEWER—Overwrites files on the source even if the source file is newer than on the target
  • NOOVERWRITENEWER—Does not overwrite files on the source that are newer on the source than on the target
  • USETARGETDB—Uses the replication set from the target machine
  • NOUSETARGETDB—Uses the replication set from the source machine
  • RESTOREDBTOO—Restores the replication set database from the target to the source
  • NORESTOREDBTOO—Does not restore the replication set database from the target to the source
  • CHECKSUM—Performs a block checksum comparison and only restores those blocks that are different
  • NOCHECKSUM—Does not perform a block checksum comparison and restores those files that are different
  • ORPHANS—Moves or deletes orphan files on the source
  • NOORPHANS—Does not move or delete orphan files on the source
Examples restore DataFiles from beta ,overwritenewer ,usetargetdb
Notes
  • The default settings for this command are overwrite, overwritenewer, usetargetdb, restoredbtoo, and noorphans.
  • The options can be used in any combination and in any order. The first option does not require a comma, but the second and remaining options do require a comma before the option.
  • The source command is required before each use of the restore command.
  • This command requires the original source option.
  • Options that contain non-alphanumeric characters must be enclosed in quotation marks.