Auto backup stop working

Discussion in 'General' started by raczkowski1, Oct 18, 2022.

  1. raczkowski1

    raczkowski1 New Member

    Hi
    A few weeks ego backup stopped working. I was search solution but no effects.
    When I run backup by
    All websites are backup correctly.
    How to debug cron backup?
    Thanks
    Dariusz
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run the command:

    crontab -l

    as root user and post the result. And run the command:

    /usr/local/ispconfig/server/cron.sh

    do you get any errors when you run it?
     
  4. raczkowski1

    raczkowski1 New Member

    result of commands:
    However in log (/var/log/ispconfig/cron.log) is not any entry about backup at night. Only manual backup is logged execute from ISPConfig GUI for one website..
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Wish you had posted the crontab -l in CODE tags.
    Code:
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    Compare what you have to the above, especially check if the line endings really are missing.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    In the dbispconfig mysql database is a table sys_cron, inside that table you can find one record for the backup cronjob. Try to delete that record using e.g. phpmyadmin. Then wait until tomorrow to see if the backup has been created again.
     
  7. raczkowski1

    raczkowski1 New Member

    I was remove record from table sys_cron yesterday and no appear again and no backup.
    Also check crontab entry and there are correct.
     
  8. raczkowski1

    raczkowski1 New Member

    Hi
    I found solution. I removed file /usr/local/ispconfig/server/temp/.ispconfig_cron_lock and auto backup start working.
    Thanks
     
    ahrasis and till like this.

Share This Page