How to Download Server Backup to a Local Location Using SFTP

by Immad Uddin Khan  September 18, 2015

Backing up your servers is an essential part of server hosting. It is one of those task that need to be performed on regular basis. Through backups you can prevent your data loss and always have your website contents with you in case things go disarray. Just like brushing your teeth is a daily task to keep your teeth safe, you need to keep your data safe by having regular backups.

How to Download Server Backup to a Server Location

At Cloudways, we were already providing a back up service to our valued customers. However, one feedback kept coming to us on constant basis: Allowing the users to download a complete application backup (Web Content+DB) to a local location. What did we do about it? Well, as always, WE FIXED IT! Cloudways now lets you download a complete backup of your web application to a local location of your choice. Now you can have your application back up with you at your desired location. Here is how to go about doing it:

Step 1: Go to the Server Management tab

From your Cloudways Console click on “Manage Server” option to enter the “Server Management” tab of your server.

Cloudways Console Manage Server

Cloudways Console Server Managed

Step 2: Now You Need to Enable Local Backups

  1.     Scroll down to “Backups” tab and expand it.
  2.     Select “Yes” in “Enable local backups” to activate local backups. Activating this option will make an additional copy of your backup to your server (local_backups folder) to let you download it via SSH/SFTP.
  3.     Click on “Save Changes“. (This option is must before moving ahead.)
  4.     And then click on “Take Server backup now“.

Cloudways Console Backup

This will start the process of backup and you should have the file within a few minutes.

Step 3: Check SFTP Access Details

Once the backup process has been successfully completed, you need to check the SFTP access details so that you are able to connect with your server. For this, you need to:

  1.     Click on “Application Management” tab of your desired server.
  2.     Expand the tab of “Access details“.
  3.     Note down your SFTP details that include the Public IP address (Host Name), User Name and Password.

Cloudways Console App Management

Now you need to download the backup through the SFTP, for this you can use any SFTP client. In this case, we are using WinSCP client. Before moving ahead, make sure you are connecting through the SFTP protocol.

  • Enter your desired Server Public IP address under “Host name” which you can find through Step 3 under the SFTP heading.
  • Enter port number “22“.
  • Enter your SFTP username and password.
  • Now click on the “Login” button.

WinSCP client

Once you are connected to your server via SFTP, click on “local_backups” folder and download the backup file (backup.tgz) into your local system.

WinSCP client

Please Note: This procedure will only take the latest backup of your application to a local location. Off-site backups will continue to work as per the set frequency.

Start Creating Web Apps on Managed Cloud Servers Now

Easy Web App Deployment for Agencies, Developers and E-Commerce Industry.

About Immad Uddin Khan

Immad is a Digital Content Producer for Cloudways - A Managed Cloud Hosting Platform. He is mostly busy in creating all sorts of informative and innovative content types. As a hobby, he loves to travel with his camera to picturesque destinations.

Stay Connected:

You Might Also Like...