How To Schedule Backups?

Avatar
  • updated
  • Answered

In cPanel, there is a paragraph stating "...These are not automatically scheduled backups. Automatically scheduled backups need to be enabled by the server owner/administrator."


However, I can't find where I can enable the automatically scheduled backups in AMP (Account Management Panel).


Could you tell me where I can enable it?

Duplicates 7
Is it possible to automatically backup database in phpmyadmin
Is it possible to automatically backup database in phpmyadmin (windows os)
How do I set up regular automated backups?
I've been through the Backup tool and I can see how to do on-demand backups, but is there a way to set up regular daily or weekly backups?
Enable automatic Backup on Cpanel
Hey guy why do you disable automatic backup on Cpanel???
Script to create full Cpanel backup and send to remote FTP
I have a new reseller account with InMotion and have another active reseller account with another host. With the other host, I use cron to automate full Cpanel backups for every Cpanel under my reseller account, with the backup files being sent to a remote FTP server. The script I use there is written in PHP and it works flawlessly. But it does not work on InMotion's server.

Does anyone have a script that WILL work in InMotion's server environment that will 1) create a full Cpanel backup of a hosted account and 2) send the backup to a remote FTP server?
Cron Full Cpanel backup
I am trying to cron a backup.php file to run a full CPanel backup and transfer via FTP to a different server, without success. I could connect to the ftp, but never managed to create a backup.

I am using the xmlapi.php library to do so. Did anyone manage to make a similar code work?

I need to make a weekly cpanel full backup and transfer it via FTP to a different server for security purposes.

Thank you very much.
Need shell script to take backup
o Daily backup of BOTH DB/Directory
? Keep the last 7 backups
o Monthly backup of BOTH DB/Directory
? Keep the last 6 backups for the monthly
need shall script for above condition
Website security and backup
Schedule backup for entire website? How to prevent directory listing?
Avatar
IMH Support Agent 5
Hello, Thank you for your question about utilizing remote backups. If you in a shared hosting environment, it was possible that the script was forbidden from running due to resource usage restrictions. If you are in a VPS environment, with root access, we have a full guide regarding storing backups with Amazon S3. However, these steps can be adapted to use other third party storage services. Best, Christopher M.
Avatar
IMH Support Agent 5
Hello jlcahill,

Thank you for your question about finding a PHP script to automate backups. I am sure the script you have can be made to work with some modification. The InMotion server environment is a conventional Linux, Apache, PHP, MySQL server with all the basic options.

It's possible the script may have some paths relative to the original server it was written for or possible some file permission issues. You may be able to use a search and replace if the original server hostname is used anywhere in the script. Also, there may be some differences in security settings that could be tweaked. Our servers have some mod security rules in place, but these can be accounted for.

Best,
Christopher M.
Avatar
IMH Support Agent 5
Hello, Thank you for contacting us about backing up databases in PHPMyAdmin. It doesn't seem as if PHPMyAdmin offers an automatic backup option in the base install. In a Linux environment, you can use a cron job. I'm sure Windows has a comparable system for running scripts at regular intervals. I was able to find some documentation from Microsoft that may be helpful for you. Best, Christopher M.
Avatar
johnpaulb-imhs1
Hello Hans, Thank you for contacting us about automatic backups on cPanel.If you are on a VPS or Dedicated server, you can Configure local backups in WHM at any time. If you have any further questions, feel free to post them below. Thank you, John-Paul
Avatar
johnpaulb-imhs1

Hello,

Thank you for contacting us about a shell script for taking backups. We are happy to guide you, but we cannot custom code a solution for you from here in the forums. We have a Managed Hosting service, that can help you custom code/setup this type of script. I recommend contacting them for this type of assistance.

Let us know if you have any further questions.

Thank you,

John-Paul

Avatar
johnpaulb-imhs1
Hello, Thank you for your question. You can create a full cPanel backup at any time. To automate your backups into a retrievable format for you, you would need to create a backup script and then set it up as a cron job, which is a fancy way to say scheduled task. This way you can have it run on a particular schedule. We currently do not have instructions for coding a backup script, however. By default, if a visitor lands on a subdirectory without an index page, they will see an "Index Of" page that lists all files and folders under that directory. This can be at the least embarassing and unprofessional and at most a security risk. Learn how to stop the "Index Of" page from showing using the Index Manager in the cPanel. If you have any further questions, feel free to post them below. Thank you, John-Paul
Avatar
johnpaulb-imhs1
Hello awollen, Thank you for your question. We do have documentation that will help with this. Please see the following links. How to run a cron job How to Schedule backups with a cron job If you have any further questions, feel free to post them below. Thank you, -John-Paul
Avatar
Scott
Hello Patrick77, Our servers automatically backup any sites under 10GB every 24-36 hours. This is not a setting that is able to be changed in the cPanel. cPanel backups are not able to be scheduled by a tool, but can be done by setting a cron job (scheduled task) with a custom backup script. You can, however, initiate a cPanel backup at any time via the cPanel backup tool. We also have an article here that shows you how to do just that. I hope this answers your question. If you have any more questions or information specific to the issue please leave a comment below so we can further assist you. Best Regards, Scott M