WordPress.org

Ready to get started?Download WordPress

Forums

Backup
How to schedule backup using a UNIX cron job (7 posts)

  1. JoelBrewer
    Member
    Posted 2 years ago #

    I was reading through the support posts and came across this quote from you:

    In order to have backups done at precise times and without depending on traffic you will have to schedule a UNIX cron job. This is what the manual backup URL is for. This is a relatively easy thing to set up, but if you need assistance please get in touch with me privately.

    This is exactly what I want to do!

    I wasn't sure how to get in touch with you privately (I couldn't find your email) - Can you help me out?

    http://wordpress.org/extend/plugins/backup/

  2. hel.io
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Well setting up a cron job depends on your server configuration. Can you please tell me if you are using any control panel such as Plesk, CPanel or Webmin? If not, do you have SSH access to the server?

  3. JoelBrewer
    Member
    Posted 1 year ago #

    To the best of my knowledge I am not using any control panel.

    How can I determine whether or not I have SSH access to the server? (FYI I am using Hostway as a hosting service)

  4. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    Here's what I managed to find in their documentation pages:
    http://help.hostway.com.au/documents/faq_hosting.htm#question17

    So basically you have to talk to them if you want to run a cron job.

  5. WPwebbouw
    Member
    Posted 1 year ago #

    Hi Sorin,

    Can you give some instructions how to set up a cron job in Direct Admin?

    They give these examples of cron commands:
    /usr/local/bin/php /home/vries24/domains/domain.com/public_html/script.php
    /usr/local/bin/curl --silent http://www.domain.com/cron.php > /dev/null
    /usr/bin/wget -O /dev/null http://www.domain.com/cron.php

    Where do I put the http://mydomain.com/?backup
    or http://mydomain.com/?backup=UIYoBLUJrQ0A

    tia
    Erik

  6. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    On the Cronjobs page (where I assume you got the examples from) you have a Create a New Cron Job section. Under there you have a bunch of fields like minute, hour, etc. If for example you enter 15 in the minute field and 3 in the hour field and leave everything else to *, the cron job will run every day at 3:15 am.

    Now for the command field, something like /usr/bin/wget -O /dev/null http://mydomain.com/?backup=PPYmBWUJKq0G should work fine.

  7. WPwebbouw
    Member
    Posted 1 year ago #

    Hi Sorin,

    Works perfectly. Thanks for your help.

    (I also posted a comment in http://wordpress.org/support/topic/no-backups-since-update?replies=17#post-3151112)

    Erik

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.