cancel
Showing results for 
Search instead for 
Did you mean: 

Schedule Backup not working

SOLVED

Schedule Backup not working

I have setup Magento Schedule Backup (http://prntscr.com/mhstzh) to backup database daily.

The problem is that the backup is not being done.

 

I have checked with my hosting, and they have setup cron jobs on my hosting, and they have assured me that cron jobs are working fine.

 

In the meantime I have noticed that the in the Magento database, the table cron_schedule, only only some are being executed, and there is no job for the schedule backup (or at least I could not find it).

 

Does anyone know hoe to make the schedule backup working?

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Schedule Backup not working

Hello @robertbits ,

 

There is look like cron is not configured on server as well so we got this type issue, Please configure as below and let me know.

 

To setup cronjob on server, Please follow below steps

Please log in on the server by the terminal

 

Find the PHP binary and php.ini path
To display the path to your PHP binary, enter

 

$ which php

A sample result follows:

 

 

/usr/bin/php

 

Create the cron job
To create a cron job for the Magento file system owner, enter the following command as a user with root privileges:

 

$ crontab -u <Magento file system owner username> -e

For example,

 

 

$ crontab -u magento_user -e

A text editor displays. (You might need to choose a text editor first.)

 

 

* * * * * &lt;path to php binary> &lt;magento install dir>/bin/magento cron:run | grep -v "Ran jobs by schedule" >> &lt;magento install dir>/var/log/magento.cron.log
* * * * * &lt;path to php binary> &lt;magento install dir>/update/cron.php >> &lt;magento install dir>/var/log/update.cron.log
* * * * * &lt;path to php binary> &lt;magento install dir>/bin/magento setup:cron:run >> &lt;magento install dir>/var/log/setup.cron.log

where

 

  • <path to php binary> is the absolute file system path to your PHP binary
  • <magento install dir> is the directory in which you installed the Magento software; for example, /var/www
  • | grep -v "Ran jobs by schedule" filters this message from the log, making any errors easier to spot

The first command (magento cron:run) reindexes indexers, sends automated e-mails, generates the sitemap, and so on. Usually, it’s associated with the PHP command line .ini file. The other two commands are used by the Component Manager and System Upgrade

 

--
If my answer is useful, please Accept as Solution & give Kudos

View solution in original post

15 REPLIES 15

Re: Schedule Backup not working

Hello @robertbits ,

 

There is look like cron issue. Can you please install below extension and you will easily check cron is working or not?

 

https://marketplace.magento.com/kiwicommerce-module-enhanced-smtp.html

 

Let me know if you still getting issue. 

--

if issue solved, please Accept as Solution & give Kudos

 
 
 

Re: Schedule Backup not working

@gelanivishal 

you have told me to install Enhanced SMTP, but I cannot figure out how to check if cron is working? By any chance did you meant Cron Scheduler ?

Re: Schedule Backup not working

Hello @robertbits ,

 

Yes, Please install https://marketplace.magento.com/kiwicommerce-module-cron-scheduler.html

I have given another extension link.

 

--

if issue solved, please Accept as Solution & give Kudos

Re: Schedule Backup not working

@gelanivishal 

 

I have installed KiwiCommerce_CronScheduler, but I have encountered a problem while installing since they tell you to run setup:di:compile

 

but when I was running that command I got this error: http://prntscr.com/mi8sgk

 

also when I went into the backend and opened the extension page I got this page: http://prntscr.com/mi8tk7

Re: Schedule Backup not working

Hello @robertbits ,

 

Which Magento version are you using? Make sure you have deploy static content to enable extension. Also check admin side, Do you get extension configuration?

 

 

Thank you.

Re: Schedule Backup not working

@gelanivishal 

 

I am using Magento 2.2.2

I cannot deploy static content since I get the same error (http://prntscr.com/mi8sgk)

When I go the admin I see the extension configuration, you can see the configuration page here: http://prntscr.com/mi9g38

 

 

Re: Schedule Backup not working

Hello @robertbits ,

 

Please check system_backup cron in Cron Job Schedule List and check it is working well or not?

 

--

if issue solved, please Accept as Solution & give Kudos

 
 
 

Re: Schedule Backup not working

Hello @gelanivishal 

 

I checked the schedule list, but could not find any value system_backup.   Smiley Sad

 

Re: Schedule Backup not working

Hello @robertbits ,

 

In your case, Cronjob is not working on your server so backup process is not working. If you start cronjob then I hope that it will work.

 

--

if issue solved, please Accept as Solution & give Kudos