Difference between revisions of "Automatic Backups do not work"

From Kolmisoft Wiki
Jump to navigationJump to search
Line 28: Line 28:
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.
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


<br><br>
<br><br>

Revision as of 10:18, 19 March 2010

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



See also