Backup and Import to a New Environment¶
The steps below show how to backup and import to a new environment.
Export:
On the source system, create a remote backup location:
backup add remote <URI>
For example:
backup add remote sftp://sftpusr:sftpusr@172.29.41.107/remote
Backups to sftp require ssh key-based authentication to be set up. Refer to SSH key management for further details.
Create a localbackup:
backup create localbackup
List backups to get the date:
backup list
Export the local backup to the remote destination (created by backup add remote), for example:
backup export localbackup remote 2015-06-01 12:58
Import:
From the SFTP server, scp the
.tar.gz
file to the new box, for example:$ ls 201506021224.tar.gz $ scp 201506021224.tar.gz [email protected]:/opt/platform/admin/home/media/
Import the file as a localbackup, for example:
backup import localbackup media/201506021224.tar.gz
Restore the backup, for example:
backup restore localbackup 2015-06-01 12:58