ispCP - Board - Support
[SOLVED]Move the backup schedule - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED]Move the backup schedule (/thread-7310.html)



[SOLVED]Move the backup schedule - coper - 07-27-2009 04:25 PM

Hi,

How can I do to move the backup to another hour? When the panel do the backup I get this message in a lot of hostings or I get an error 500:
Warning: mysql_connect() [function.mysql-connect]: Too many connections

I can't even access via ssh.

So I need to move the backup to an hour with less usage of the server.

Thank you.

c.


RE: Move the backup schedule - joximu - 07-27-2009 05:58 PM

see /etc/cron.d/ispcp - part "Backup"
Quote:# Backup
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp report &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log
(I enabled the report for the second (ispcp) backup).

@daily means: once per day - but you don't know when.

You can change this to eg:
Code:
5 4 * * * root /var/....

theis means every day at 4:05 am

minute hour day month day-of-week - see cron manual...

/J


RE: Move the backup schedule - coper - 07-28-2009 07:20 AM

Thank you, I did it.

Regards.

c.