RestoreFromBackup

vtctldclient RestoreFromBackup

Stops mysqld on the specified tablet and restores the data from either the latest backup or closest before backup-timestamp.

1. vtctldclient RestoreFromBackup [--backup-timestamp|-t <YYYY-mm-DD.HHMMSS>] [--restore-to-pos <pos>] [--dry-run] <tablet_alias>

Options

1. -t, --backup-timestamp string                          Use the backup taken at, or closest before, this timestamp. Omit to use the latest backup. Timestamp format is "YYYY-mm-DD.HHMMSS".
2. --dry-run                                          Only validate restore steps, do not actually restore data
3. -h, --help                                             help for RestoreFromBackup
4. --restore-to-pos string                            Run a point in time recovery that ends with the given position. This will attempt to use one full backup followed by zero or more incremental backups
5. --restore-to-timestamp 2006-01-02T15:04:05Z07:00   Run a point in time recovery that restores up to, and excluding, given timestamp in RFC3339 format (2006-01-02T15:04:05Z07:00). This will attempt to use one full backup followed by zero or more incremental backups

Options inherited from parent commands

1. --action_timeout duration   timeout to use for the command (default 1h0m0s)
2. --compact                   use compact format for otherwise verbose outputs
3. --server string             server to use for the connection (required)

SEE ALSO

  • vtctldclient - Executes a cluster management command on the remote vtctld server.