Automatic Backups do not work

From Kolmisoft Wiki
Jump to navigationJump to search

Cronjob

Automatic backups are run by cronjob which should reside in /etc/cron.d/mor_hourly_actions

Inside this file you will see:

0 * * * * root wget -o /dev/null -O /dev/null http://127.0.0.1/billing/callc/hourly_actions

To test if it really works execute such lines in bash:

cd /tmp
wget http://127.0.0.1/billing/callc/hourly_actions

You should get such output:

--07:39:07--  http://127.0.0.1/billing/callc/hourly_actions
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://127.0.0.1/billing/backups/backups_hourly_cronjob [following]
--07:39:07--  http://127.0.0.1/billing/backups/backups_hourly_cronjob
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1 [text/html]
Saving to: `backups_hourly_cronjob'
100%[===========================================================================================================================>] 1           --.-K/s   in 0s
07:39:07 (274 KB/s) - `backups_hourly_cronjob' saved [1/1]

If you do not get such output that means Apache is misconfigured and you need to make sure that your Apache is accessible as 127.0.0.1 from this local MOR server.


In /tmp/mor_debug.txt should be such lines:

2010-03-19 10:00:01 - Make backups at: 10 h
Making auto backup

If they are, login as apache user and try to execute such command in bash:

/usr/local/mor/make_backup.sh 20100319090451 /usr/local/mor/backups -c

Check if backup is made.

If not, do:

chmod 777 -R /usr/local/mor/backups




Backup is not visible in GUI

Backup is made, file is present, but does not appear in GUI.




SSL is used in the server

In such case you should change mor_hourly cron configuration file like this:

0 * * * * root wget -o /dev/null -O /dev/null https://your.domain.name/billing/callc/hourly_actions --no-check-certificate


If you do not have FQDN then put your server IP adress instead of your.domain.name


File is located in:

vi /etc/cron.d/mor_hourly_actions



See also