The moment has come. You have contracted the backup... and it's time to recover data!
From SW Panel, access All my active Services (left menu), and click on the name of the corresponding Cloud:
Access Keep and recover my data> Backup Management (left menu):
A list with the last backups made appears. Click on Restore Backup:
When you click on this button, the following screen will appear:
With the first option, we can restore a domain or a complete service, which we can choose in a table and select the copy of the day that suits you best, either from web, mail or Database (if you have the backup activated):
Once the backups have been selected, you must decide if you want the copy to be overwritten in the original directory or to recover it in a different directory. Once decided, you will have to press the button Start recovery for it to take place:
If you select the second option:
On the left side, check the directories that will be recovered. Remember that, by pressing the arrows "⯈" on the left, you can display the contents of the directory:
The backup copies of all databases are located in "/var/backupmysql/", so if you require any, you must mark this directory.
In the restoration directory, a ".sql" file will be generated for each of the databases. You will have to dump the one that corresponds to your database, this is not done automatically. Later, you can choose to delete the excess files.
Backups of all email are located in "/var/spool/postfix/busties /". In this directory you will find a folder for each mail domain and, within them, a folder for each mail account, so that you can choose to restore all the mail, an entire domain or a single account.
Remember that, later, you will have to access via SSH to copy the restored mail to the system mail directory ("/var/spool/postfix/busties/"), and that this operation must be carried out keeping the original permissions using the "p" parameter . For example, in this case, we restore all mail from the domain "swhosting.com":
cp -pr /var/www/restore/20191005/var/spool/postfix/busties/dominio_a_restaurar.com /var/spool/postfix/busties/
On the right side, select the date of the backup you want to recover, review the list of selected directories and click Next:
Note that the copies are made once a day and from 01:00 hours. If you want to recover the content that was there on the day (eg 04/23/2019), you must choose the following day as the date (in the example: 04/24/2019). Another way of looking at it, if you know the exact day that certain content disappeared or you deleted the code by mistake, choose that same date since the copy is from the beginning of that day.
A summary appears with the data to be recovered, the date of the backup to be used and the directory where you will find the restored files:
If the data is correct, check the box as you accept the restoration and press Start Restore.
In a few minutes you will find the restored data in the directory that appears in the last step, which you can access in the usual way via FTP or SSH as indicated below.
You can move or copy the recovered code. Remember that you have the "phpMyAdmin" web database manager to carry out any import, as well as other procedures. The access address is the following:
The access credentials correspond to the username and password of your database.
To access the general directory of restorations ("/var/www/restore"), you must create an FTP account at the Cloud level (instead of in the service):
Access the Dashboard of the service for which you have to create an FTP user account. To do this, press All my Active Services (left menu) and click on the corresponding Cloud:
Access Actions on this service> FTP Management (left menu), and click Create Account:
Next you must enter the required data:
In compliance with the ISO 27001 standard on information security, the password will only be visible at the time of creation. You can only modify it later.
On the right side you will find a directory tree:
If you select the "root" directory, this account will have access to all web directories.
Alternatively, you can choose to only mark the restorations directory ("data") to restrict access to this directory.
To access and transfer your files you must download an FTP client, a program that is in charge of connecting to the remote FTP server and managing the sending / receiving of files.
The most popular FTP client is FileZilla. It is a free and easy-to-use FTP manager available for Windows, Linux and Mac OS X operating systems.
The access data to the FTP server are:
Server: Host name (example: ce2019082916001.dnssw.net) or IP (example: 126.96.36.199). You can consult this information from the Dashboard ("Current Resources" section):
Username and password: They will correspond to the ones you created in the previous section.
This form of access requires the credentials "root" (administrator user) of your Cloud. Unlike the previous one, it allows you to view all the directories of the file system.
We tell you how to check the access data:
Click on All my active Services (left menu) and click on the corresponding Cloud:
Access Actions on this service (left menu) and click on Service access data:
The password was sent to you by email when you signed up for the Cloud.
The most popular program is WinSCP. It will allow you to connect, view all the directories of the file system and make the copy of files that you require without access restrictions. Remember that at the time of connecting you must select the SCP protocol.