features
downloads
screenshots
contribute
contact
references
faq
help

Creating a Cron Job for phpMyBackupPro Backups

This community thread discusses how to set up a cron job to automatically run backups using phpMyBackupPro. Automating backups ensures your data is consistently saved without manual intervention.

Step-by-Step Cron Setup

  1. Make sure cron.php from phpMyBackupPro is uploaded to your server.
  2. Test it manually by accessing:
    https://yourdomain.com/phpmybackuppro/cron.php
  3. On your server (Linux), open the crontab editor:
    crontab -e
  4. Add the following line to schedule daily backups at 2 AM:
    0 2 * * * /usr/bin/wget -q -O /dev/null "https://yourdomain.com/phpmybackuppro/cron.php"

Important Notes

  • Make sure your phpMyBackupPro is properly configured to perform scheduled backups when cron.php is triggered.
  • You may need to adjust permissions or use curl instead of wget, depending on your hosting environment.
  • Ensure output is redirected to /dev/null to avoid generating unnecessary logs.

Example (Using curl)

0 2 * * * /usr/bin/curl -s "https://yourdomain.com/phpmybackuppro/cron.php" > /dev/null

Need Help?

Join the discussion or ask further questions in our Forum, or refer to the Help section.