execute restore
restores a database backup into EMS
Synopsis
execute restore restores a database backup into EMS. The backup to restore from may be a local or remote backup.
If using a local backup, provide the backup's path to the --local.file flag.
If using a remote backup, provide both the --remote.path of the backup and any other --remote flags required to connect.
The --local.file path must be located in the /exchange folder.
execute restore [flags]
Options
--backup.password string The password of the database backup file (set when the backup was first created)
--copy.service string The service that will be used to copy from the remote host [scp|ftp|sftp] (default "scp")
-h, --help help for restore
--keep.file /exchange If restoring from a remote backup, controls whether a copy of the backup file will be kept locally in the /exchange folder after the restore completes
--local.file /exchange The backup file name to be restored (must be located in the localhost /exchange folder)
--remote.file string The /path/filename on the remote host of the backup file to be restored. The remote user must have read access for this location.
(For the FTP service, the file location is relative to the FTP root folder)
--remote.ip string The IP of the remote host where the database backup file will be copied from
--remote.password string The password for the remote user that will be used to connect to the remote host
--remote.port int The port to be used by the remote read service. [default: 22 for SCP/SFTP, 21 for FTP]
--remote.user string The user that will be used to connect to the remote host
See also
- execute - for executing commands on the host
- execute backup - generates an EMS database backup