Backup and Import to a New Environment

The steps below show how to backup and import to a new environment.

  1. Export:

    1. 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.

    2. Create a localbackup:

      backup create localbackup

    3. List backups to get the date:

      backup list

    4. Export the local backup to the remote destination (created by backup add remote), for example:

      backup export localbackup remote 2015-06-01 12:58
      
  2. Import:

    1. 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/
      
    2. Import the file as a localbackup, for example:

      backup import localbackup media/201506021224.tar.gz
      
    3. Restore the backup, for example:

      backup restore localbackup 2015-06-01 12:58