Announcement

Collapse
No announcement yet.

vb_backup.sh and Cron Job

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vb_backup.sh and Cron Job

    I hope this is in the right spot. Im trying to setup the vb_backup.sh included in the do_not_upload folder and set up a Cron job to automatically back it up for me.

    But Im truly lost on what I should be doing. Ive put the vb_backup.sh in my forums root directory and changed the path to my config.php thats in Core/Includes like I believed I should.

    Set the cron to run the shell file ./forums/vb_backup.sh

    and I keep getting this error:
    vb_dbbackup

    Warning: include(..././forums/vb_backup.sh): failed to open stream: No such file or directory in phar://.../vb/vb.phar/library/cron.php on line 50 Warning: include(): Failed opening '..././forums/vb_backup.sh' for inclusion (include_path='.:/usr/lib/php7.4') in phar://.../vb/vb.phar/library/cron.php on line 50
    Help or direction to where I can read/learn/fix?

    Greatly appreciated.
    Last edited by Robbob; Fri 18 Sep '20, 4:53pm.

  • #2
    vb_backup.sh is a command line script and isn't meant to be run from vBulletin's Scheduled Task system. vBulletin Scheduled Tasks need to be written in PHP and placed in the [var]/core/includes/cron[/core] directory.. For security purposes, you should not place the vb_backup.sh file within your public_html directory.

    Normally, this is done from the command line interface using the crontab scheduler. Please see: https://www.cyberciti.biz/faq/how-do...-or-unix-oses/

    If you use cPanel on your server you can configure this following these instructions: https://docs.cpanel.net/cpanel/advanced/cron-jobs/

    For Plesk see: https://support.plesk.com/hc/en-us/a...rontab-syntax-

    For DirectAdmin see: https://www.directadmin.com/features.php?id=2079
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      Thank you for the help Wayne.

      Comment

      Related Topics

      Collapse

      Working...
      X