How to Backup my website files and databases in WHM/cPanel

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
I am having several websites that hosted on a VPS with WHM/cPanel. Doing backup on each site consuming me more time as zip files and download Mysql database to my PC. Is there a way to download all files and Mysql databases of all websites on the VPS using WHM/cPanel?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Hi McKay,

WHM provides everything you need for automating backups and transfer to a remote location. This will package the entire accounts including files database emails DNS and all other information needed to restore those account to this or another server.

Home >> Backup >> Backup Configuration

You can configure the backup system to transfer the backups to a remote FTP server (you could setup an FTP server on your PC to receive the backups)

Hope this helps.
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
Dr. McKay
There are to many options in Backup Configuration

Backup-cpanel.png

Can you guide me which ones should I select to create a zip file with all files and databases of all my websites on my VPS? and make backups work in the background?
 

LJSHost

Well-known member
Hosting Provider
Registered
Joined
Jul 5, 2016
Messages
1,031
Points
63
Backup status: enabled (obviously) :D
Backup Type: Compressed

Maximum destination timeout (default should be fine, but might need to be amended depending on if you are having timeout issues)
Maximum restore timeout (default)


Backup daily - Select all

Files - Select all

Databases - Per account

Additional Backup Destinations - Enter the information for your FTP server to receive the backups.

This is just a basic guide you will need to tweak the settings for your own personal needs.


Once you have the backups working you must try and restore one, backups are useless without regular testing.
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
Dr. McKay
I am afraid it will exceed my VPS storage allowed if I use this way to backup all my websites data, I checked some options but seem they are complex to do what I wanted.

backup-whm-cpanel3.jpg

I want to run it immediately without waiting for a schedule.

backup-whm-cpanel2.jpg

I am not sure how to set this up "Default Backup Directory" where to find it or how many seconds I should set in Maximum destination timeout..etc

Is there an easier way to do the backup via SSH or cPanel, I want to do backup on separated site, after had backup file, I can delete the file to free my disk space.
 

HostYourNet-DR

Well-known member
Registered
Joined
Jan 13, 2017
Messages
139
Points
18
Hi when you set up your back up its get put in to the /backups folder on centos.
There is an option to once all the data is backed up to FTP to an external location and delete its delete the back up data so its not added to your VPS.
"THe option is "Retain Backup in the default backup direcroty."
If you have this unticked make sure your remote back up location is fully active.
Also you can reduce the size of your backups in tweak settings under gzip compression and set to max.
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
Dr. McKay
Thanks but I could not use this way in WHM because I have many websites with large data size, some sites have over 7GB of data while my VPS storage is 60GB SSD

backup-in-whm.png

If I enable backup for all sites, my VPS can be down when WHM generates the zip file with approx 40 to 50 GB and add up with the current data is 30 GB used, it can exceed 60GB SSD on my VPS. That's a problem, can I send the backup file to another location? or directly to my PC? But it also is not a good solution.

I am trying to use backup function in cPanel to backup per website a time. But this way is not convenient and can be interrupted any time if my internet connection is not stable.

backup-function-in-cpanel.png
 

HostYourNet-DR

Well-known member
Registered
Joined
Jan 13, 2017
Messages
139
Points
18
Unfortunatly there is no other way to do backups in cpanel that you want to do.
The only other way is to,
Mount Backup Drive as Needed.
This option requires a separate drive or other mount point.
But i have no idea how this works never used or tried it.

If there any reason why you are on a VPS and not using a reseller account?
 

DowntownHost

New member
Registered
Joined
Jan 11, 2017
Messages
3
Points
1
You can install something such as Jetbackup to make backup on a remote server.
 

Dr. McKay

Well-known member
Registered
Joined
Nov 26, 2016
Messages
565
Points
28
Unfortunatly there is no other way to do backups in cpanel that you want to do.
The only other way is to,
Mount Backup Drive as Needed.
This option requires a separate drive or other mount point.
But i have no idea how this works never used or tried it.

If there any reason why you are on a VPS and not using a reseller account?
I could use Backup function in cPanel but it depends on my website size and internet connection. It can be interrupted while downloading files if my connection is not stable, that will make me redownload files and I changed to SSH command.

You can install something such as Jetbackup to make backup on a remote server.
Do a search on the forum and found this post, now I am using SSH to backup, it is fast and no interrupt
https://forumweb.hosting/14477-ssh-zip-folders-and-files.html
to download Mysql databases, I can use PHPmyadmin but this way took me more time.
 

HostYourNet-DR

Well-known member
Registered
Joined
Jan 13, 2017
Messages
139
Points
18
Could you not just Upgrade your VPS package? to hold more data thus then you dont have to worrie about doing it?

Or get a Cpanel account else where then transfer it to the other server and delete files?
Or will the CPanel back up max out your VPS before that even happens?
 

Chris Robinson

Member
Hosting Provider
Registered
Joined
Dec 4, 2016
Messages
15
Points
3
If you do not want to backup your files to a local directory before moving them off and/or you do not want to pay the high premium to upgrade your VPS. I would suggest you to have a cron job move the files to a FTP locations as they sit. Please keep in mind if you were to do this, this may hurt your bandwidth/ server resources.

Another way to do this also is to order another VPS in the same cluster and environment and create a local network for transfers.

Thank you.
 

vpsrus

Well-known member
Hosting Provider
Registered
Joined
Jan 17, 2017
Messages
92
Points
0
Firt of all to make your backup faster than download to your local PC is to have another VPS in another location than the same VPS so you can FTP your backup to that one for security reasons.

Follow Dr McKey instructions and do not keep the backup on the server, so do not check the box "Retain backups" this will save the HD space.

cPanel backup will not make one big zip file with all the websites and DBs then move to another server, it works in each website individually so it works on the first website and compress to a zip file then transfer to your other backup server after that it will delete the zip file on your VPS and start to do the second website and so on.

Setup your backup for night and when finish you will receive an email from the system informing you that backup was completed.
 

gagah

Well-known member
Registered
Joined
Jan 21, 2017
Messages
86
Points
0
I agree with what @vpsrus said. If the only sites you hosted are your own, then there's really no need to retain backups locally because the main purpose of the backup is to restore when catastrophe happens, and when catastrophe happens, the first one to go down is usually the local server. So remote backup is the way to go. Buy some cheap storage VPS (they're usually storage VPS because their processors are weak), Amazon S3 storage is like $0.025/gb for the first 50tb, so that might be a good solution too. Set it up so that it retain the last 3 days of backups, then you'll not pay so much on storage cost.
 

keenweb

Member
Registered
Joined
Jan 23, 2017
Messages
55
Points
0
For start i would always recommend you back up your website in regular basis.
If you want to backup your entire website including your cPanel configuration, email and etc.

you can do so by going to the backup wizard, full backup and bishbang you are done.

(Another Suggestion)
Though if you have a Wordpress based website, they are many plugins you can use to automatically backup your website to your google drive and or dropbox..
 
Older Threads
Replies
25
Views
10,570
Replies
8
Views
7,417
Newer Threads
Replies
20
Views
6,730
Replies
2
Views
3,282

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top