The free forums are no longer in use. It remains available as read-only archive.
3:08 pm
June 26, 2013
I run xcloner from a crontab, however, I can't seem to get it to pick up on any profiles.
Each time crontab runs it picks up on the default profile.
I've tried three variants.
1. /usr/bin/php /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/configs/hls-hourly.php > /home/sites/hls.ie/public_html/administrator/backups/lcbackup.log 2>/home/sites/hls.ie/public_html/administrator/backups/lcbackup-errors.log
2. /usr/bin/php /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php hls-hourly.php > /home/sites/hls.ie/public_html/administrator/backups/lcbackup.log 2>/home/sites/hls.ie/public_html/administrator/backups/lcbackup-errors.log
3. /usr/bin/php /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php?config=hls-hourly.php > /home/sites/hls.ie/public_html/administrator/backups/lcbackup.log 2>/home/sites/hls.ie/public_html/administrator/backups/lcbackup-errors.log
Every one only picks up on the default config as per the log file:
X-Powered-By: PHP/5.3.26Content-Type: text/html; charset=utf-8Set-Cookie: auth_clone=1
<b>Using default configuration file</b><br /><b>Starting /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php</b><br /><b>Starting XCloner for site http://www.hls.ie at 2013-06-26 16:00</b><br />
I need to run one crontab which uploads to a hourly/daily S3 bucket and another which uploads to a weekly S3 bucket.
Can you tell me where I am going wrong please?
Wil.
4:06 am
June 26, 2013
Thanks for the response, however it's still not picking up the configuration file and using the default one.
Here's the crontab output log for the cron line you suggested.
/usr/bin/php /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php hls-hourly.php
As you can see it's still using the default configuration.
X-Powered-By: PHP/5.3.26Content-Type: text/html; charset=utf-8Set-Cookie: auth_clone=1
<b>Using default configuration file</b><br /><b>Starting /home/sites/hls.ie/public_html/wp-content/plugins/xcloner-backup-and-restore/cloner.cron.php</b><br /><b>Starting XCloner for site http://www.hls.ie at 2013-06-27 04:31</b><br />
Wil.
5:11 am
June 26, 2013
Hey there,
Just to let you know that it was an issue with the hosting environment.
They had tured off argv and argc for shared hosting so I had to pop register_argc_argv=true; in a php.ini file.
Perhaps you could do a quick check in cloner.cron.php to see if they are set and output a warning message if not.
Cheerz,
Wil.
1 Guest(s)