Skip to main content
All CollectionsWeb Hosting
How to restore a backup
How to restore a backup
Updated over a week ago

Download backup to local desktop

  1. Open Regery control panel and go to the Web Hosting page .

  2. Click ActionsFiles Backups .

  3. Download required backup to your local desktop.

  4. If required backup is incremental that it is required to download main backup file and incremental one.

Upload backup to hosting

  1. Backups are compressed TAR files. If you have necessary tooling you can inspect your backup archive right on your local desktop.

  2. You can also upload backup directly to hosting and then extract files there.

  3. For upload it is better to use some SFTP compatible client program like FileZilla.

  4. In order to get SFTP connection details click ActionsSSH Users

  • you will see a list of SSH users

  • you can generate password for required SSH user

  • if you click Connection Details button then you can get hostname/port

5. In FileZilla make sure that connection endpoint includes SFTP protocol. Example: s

6. Once SFTP connection is established you can download backup files to any folder. In our example let's use some temp folder.

7. Using FileZilla create temp folder in your home directory. Home directory is opened by default by FileZilla.

8. Upload backup files to temp folder.

Extract backup on hosting

  1. Once backup files are uploaded you can extract them using tar utility. This utility can be executed using SSH connection.

  • you can establish SSH connection using any SSH client on your desktop. For example, for Windows, Putty can be used.

  • you can use Terminal interface in Regery control panel. Click ActionsRemote Terminal

2. Once SSH connection is established you need to make temp folder active. Type and execute cd ~/temp

3. Check that your backup file is uploaded to current folder. Run ls -l command that will list all files in current directory. You should see your backup .tgz file.

4. Now you can extract your backup to any folder on the host

  • extract to current folder: tar -xvf backup_websharedstandard_xxxxxx.tgz . Once files are extracted you can run mc command that will run convenient two panel files explorer. Now you can copy required files from extracted archive to your active website folder. If you do not know website folder then you can look here ActionsWebsites && DomainsExpand required website → Path to files option.

  • extract particular folder from archive to current folder. tar --strip-components=3 -xvf backup_websharedstandard_xxxxxx.tgz ./vhosts/ - this example extracts only ./vhosts/, also it skips 3 directories during extraction ./vhosts/ so only www folder is extracted. If you use --strip-components=2, then folder will be extracted. If you use --strip-components=4, then the content of www folder will be extracted right to current folder.

  • extract files to some specific folder. In order to do so use -C parameter. tar -C ~/vhosts/ --strip-components=4 -xvf backup_websharedstandard_xxxxxx.tgz ./vhosts/ This command will extract ./vhosts/ from TAR archive to ./vhosts/ folder on your hosting.

Website folder is configured here Actions → Websites && Domains → Expand required website → Path to files option.

Did this answer your question?