BuycPanel Blog

BuycPanel Blog

Latest news and updates

Steps to Store and Transfer Backup Files on cPanel

Posted by Allura on 01 08 2019.

A Brief Introduction
You can use WHM’s Backup Configuration feature to store backup files you have already configured via the Additional Destinations option. You can access the Backup Configuration interface by going to the Backup option under the Home menu.Destinations include:Google Drive
WebDAV
Amazon S3
S3 Compatible
SFTP
FTP
A local directory
Custom locationsNotes:You’re required first to enable the Retain Backups and account backups to use this feature. These are found in the Default Backup Directory setting in the Backup Configuration interface of WHM. (WHM > Home > Backup > Backup Configuration)
In order to restore backups from the aforesaid locations, you will have to move the backup files to their servers before you restore the backups. Steps you need to follow to successfully transfer backup files to your server from a remote location:First, you need to access the additional destination that you had created via the Additional Destinations option…

A Brief Introduction

You can use WHM’s Backup Configuration feature to store backup files you have already configured via the Additional Destinations option. You can access the Backup Configuration interface by going to the Backup option under the Home menu.

Destinations include:

  1. Google Drive
  2. WebDAV
  3. Amazon S3
  4. S3 Compatible
  5. SFTP
  6. FTP
  7. A local directory
  8. Custom locations

Notes:

  • You’re required first to enable the Retain Backups and account backups to use this feature. These are found in the Default Backup Directory setting in the Backup Configuration interface of WHM. (WHM > Home > Backup > Backup Configuration)
  • In order to restore backups from the aforesaid locations, you will have to move the backup files to their servers before you restore the backups.

 

Steps you need to follow to successfully transfer backup files to your server from a remote location:

  1. First, you need to access the additional destination that you had created via the Additional Destinations option using your preferred tool. As stated before, this option is found in WHM’s Backup Configuration

(WHM > Home > Backup > Backup Configuration)

For example, to access an FTP destination, you could use an FTP client.

  1. Find the required backup files and move them to your local computer.
  2. Then store the backup files on your server in a suitable backup directory.

 

Notes:

  • You need to transfer the backup files from the remote location to your server manually. However, WHM’s Backup Restoration feature takes care of the actual restoration once you have transferred the backup files to the server. (WHM > Home > Backup > Backup Restoration)
  • The backup directories on the server resemble a particular format – BACKUPDIR/date/accounts, wherein,
  1. BACKUPDIR refers to the variable from the file, /var/cpanel/backups/config.
  2. The date format used is the yyyy-mm-dd yyyy stands for the 4 digits year in while mm and dd stand for the 2 digit month and day respectively.

For example, if the server has its backups in the /home/backups directory, for the user admin, the weekly backup on July 15, 2019, can be found in the /home/backups/weekly/2019-07-15/accounts/admin.tar.gz file

 

Conclusion

These are the steps to restore backup files on cPanel. If you’ve followed them successfully, WHM’s Backup Restoration interface will be able to display the files under the correct date and account. (WHM > Home > Backup > Backup Restoration).