Some hands-on experience is required! If you have never used the command line, please contact one of our partners to get some assistance.

To restore your Hypernode from a backup use the steps below.

Restore using snapshots

On Amazon (AWS) and Combell OpenStack we use snapshots to create backups. Snapshots are a static copy of all data present on the disk that can be mounted on your Hypernode as a new file system under /data/backup/. When the file system is mounted, you can easily restore your files by copying them from the file system.
For databases we start an extra instance of MySQL running om port 3307 so you can easily create a dump of the database or load the data from the backup instance to the production instance.

The backup snapshot is automagically detached/unmounted overnight, before the backups are made. There is a second MySQL instance running so you’ll lose some resources while it is attached. Please contact Support if you want the snapshot detached earlier, to save on resources.

For DigitalOcean, please see below.

Restore a database from snapshots

Create a database dump

To create a database dump from the backup instance, connect to port 3307 with the mysqldump utility and create a dump:

When the export is created, a backup file can be found in /data/web named after the database, with the .sql.gz extension.

Dump the data from the backup MySQL instance into the production database.

To restore the backup and immediately import it in the production database use the following command:

Restore a file backup from a snapshot

To restore your files, copy the files from /data/backup/current to your public/ or magento2/ directory.

Restore on DigitalOcean

Restore a database backup on DigitalOcean

When we restore a database backup, you’ll find a database dump compressed with gzip.
The name of this backup has the format database_name_date_timezone.sql.gz

To restore this backup you can use either magerun or use the MySQL client utility:

Using magerun:

First unzip the back-up file:

For Magento 1:

For Magento 2:

Using MySQL client:

And then wait until the database is fully imported.

This might take a while for large databases, so get yourself some coffee in the meantime.

Restore a file backup on DigitalOcean

When you request a file backup on a Hypernode at DigitalOcean, we create a directory in your homedir in which we restore from a certain point in time.

To restore this backup, remove the old file or directory and copy the file(s) and/or directories in place in your /data/web/public directory.

IE: if you need to restore the var directory, use the command:

If you need some visual assistance, you can use mc (midnight commander).

13