Title: testing the updraftplus backup script
Last modified: September 1, 2016

---

# testing the updraftplus backup script

 *  Resolved [diondkb](https://wordpress.org/support/users/diondkb/)
 * (@diondkb)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/testing-the-updraftplus-backup-script/)
 * Hi,
 * I need to run my backup script from a webservice like easycron. How do I test
   if my script below will continue to backup after the cron service has disconnected(
   ie complete the backup on the server). Also, do I remove the updraft entry from
   the wp_cron system?
 *     ```
       <?php
   
       //ignore_user_abort(true);
       //define('UPDRAFTPLUS_CONSOLELOG', true);
       //define('DOING_CRON', true);
       require_once('wp-load.php');
       echo 'Starting backup...'
       do_action('updraft_backup_all');
   
       ?>
       ```
   
 * Thanks,
    Dion
 * [https://wordpress.org/plugins/updraftplus/](https://wordpress.org/plugins/updraftplus/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/testing-the-updraftplus-backup-script/#post-7509075)
 * Hi Dion,
 * Once triggered, the backup will run independently of the cron service, and it
   should not be timed out.
 * It is best to set scheduled backups to ‘Manual’. This will remove the scheduled
   tasks.
 * We have a guide to running UPdraftPlus from the shell/cron available here:
    [https://updraftplus.com/faqs/can-i-run-backups-from-the-shell/](https://updraftplus.com/faqs/can-i-run-backups-from-the-shell/)
 *  Thread Starter [diondkb](https://wordpress.org/support/users/diondkb/)
 * (@diondkb)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/testing-the-updraftplus-backup-script/#post-7509089)
 * Hi,
 * Can I check the script by running the php file from the browser? I have run it
   already but nothing seems to happen. There is no new zip file in my dropbox. 
   Or is there another way to check the script.
 *  Plugin Contributor [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * (@dnutbourne)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/testing-the-updraftplus-backup-script/#post-7509133)
 * Hi,
 * Yes, you can run the script from the browser. Though nothing will be shown on
   the page until the backup is complete. I would recommend testing from the shell
   instead.
 * You will need to un-comment the UPDRAFTPLUS_CONSOLELOG ad DOING_CRON lines and
   make sure all lines end with ‘;’
 * Corrected script below:
 *     ```
       <?php
   
       define('UPDRAFTPLUS_CONSOLELOG', true);
       define('DOING_CRON', true);
       require_once('wp-load.php');
       echo 'Starting backup...';
       do_action('updraft_backup_all');
   
       ?>
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘testing the updraftplus backup script’ is closed to new replies.

 * ![](https://ps.w.org/updraftplus/assets/icon-256x256.jpg?rev=1686200)
 * [UpdraftPlus: WP Backup & Migration Plugin](https://wordpress.org/plugins/updraftplus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/updraftplus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/updraftplus/)
 * [Active Topics](https://wordpress.org/support/plugin/updraftplus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/updraftplus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/updraftplus/reviews/)

## Tags

 * [cron](https://wordpress.org/support/topic-tag/cron/)
 * [external](https://wordpress.org/support/topic-tag/external/)

 * 3 replies
 * 2 participants
 * Last reply from: [DNutbourne](https://wordpress.org/support/users/dnutbourne/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/testing-the-updraftplus-backup-script/#post-7509133)
 * Status: resolved