The free forums are no longer in use. It remains available as read-only archive.
10:35 am
I am trying to download my backups via ftp.
I have setup port forwarding on my router (BT Home HUB 3).
I did a move via ftp - this worked once from Xcloner. Subsequent efforts have failed with
'ftp connection failed'
My router's port forwarding is set 8080-8080 8080-8080.
Any ideas, anyone, please? It would be also preferable, if I can't get ftp to work - to download backups via ftp automatically and to delete the backups from the server at the same time.
Cheers,
Mike
6:21 pm
I've created a multicron.php in the configs directory;
$_CONFIG['license_code']='';
$_CONFIG['backup_path']="/home/sites/mysite.com/public_html/";
$_CONFIG['clonerPath']="/home/sites/mysite.com/public_html/administrator/backups";
$_CONFIG['jcuser']='admin';
$_CONFIG['jcpass']='21232f297a57a5a743894a0e4a801fc3';
$_CONFIG['mysql_host']="localhost";
$_CONFIG['mysql_user']='mydb';
$_CONFIG['mysql_pass']='password';
$_CONFIG['mysql_database']="mydb";
$_CONFIG['select_folders']="";
$_CONFIG['select_lang']="english";
$_CONFIG['secure_ftp']="0";
$_CONFIG['backup_compress']="0";
$_CONFIG['cron_logemail']="[email protected]";
$_CONFIG['cron_exclude']="";
$_CONFIG['cron_send']="1";
$_CONFIG['cron_btype']="0";
$_CONFIG['cron_bname']="";
$_CONFIG['cron_ip']="";
$_CONFIG['cron_ftp_server']="xx.xxx.xxx.xxx";
$_CONFIG['cron_ftp_user']='user';
$_CONFIG['cron_ftp_pass']='password';
$_CONFIG['cron_ftp_path']="website-backup/omellette";
$_CONFIG['cron_ftp_delb']="1";
$_CONFIG['databases_incl_list']="";
$_CONFIG['cron_sql_drop']="";
$_CONFIG['cron_email_address']="";
$_CONFIG['cron_file_delete']="8";
$_CONFIG['cron_file_delete_act']="";
$_CONFIG['mem']="";
$_CONFIG['backup_refresh']="1";
$_CONFIG['refresh_time']="1";
$_CONFIG['refresh_mode']="1";
$_CONFIG['recordsPerSession']="10000";
$_CONFIG['excludeFilesSize']="-1";
$_CONFIG['splitBackupSize']="2048";
$_CONFIG['backup_refresh_number']="100";
$_CONFIG['sql_mem']="";
$_CONFIG['enable_db_backup']="1";
$_CONFIG['zippath']="";
$_CONFIG['tarpath']="tar";
$_CONFIG['sqldump']="mysqldump --quote-names ";
$_CONFIG['system_dlink']="";
$_CONFIG['mosConfig_live_site']="www.mysite.com";
$_CONFIG['system_ftptransfer']="0";
$_CONFIG['system_mdatabases']="0";
$_CONFIG['add_backups_dir']="0";
$_CONFIG['cron_amazon_active']="";
$_CONFIG['cron_amazon_awsAccessKey']='';
$_CONFIG['cron_amazon_awsSecretKey']='';
$_CONFIG['cron_amazon_bucket']='';
$_CONFIG['cron_amazon_dirname']='';
$_CONFIG['cron_amazon_ssl']='';
$_CONFIG['debug']="0";
I would seem that the file is correct ( I have changed some values forprivacy ).
My cron script is setup as follows:
'/usr/bin/php /home/sites/mysite.com/public_html/administrator/components/com_xcloner-backupandrestore/configs/multicron.php'
Running this returns the following:
'Your script returned the following:
X-Powered-By: PHP/5.3.10
Content-type: text/html'
Something isn't right here.
My email for the normal cron gives me a lot of detail.
The multicron.php isn't working. What am I doing wrong?
Cheers,
Mike
7:38 am
Hi Ovidiu,
Changed to
'/usr/bin/php /home/sites/firstintheomelettequeue.com/public_html/administrator/components/com_xcloner-backupandrestore/cloner.cron.php multicron.php'
Testing this script - nothing happens. I have tried copying the multicron.php to the same directory as cloner.cron.php. Again, nothing.
I'm very confused here. Even if the cron job above did work - wouldn't it run both cron jobs? I do not want Xcloner backing up to my webserver - that's the whole point setting a cron job to download directly to ftp and then remove the file from the server.
If cloner.cron.php runs and then multicron.php - won't I still end up a with backup on my web server?
Testing the job on my hosts control panel just returns and error.
?
Mike
Can you copy/paste here the output from when running that command?
The multicron.php is only an argument in that command line, it's processing is done internally by the XCloner cron script, and needs to stay in the default configs directory. please make sure you check our cron wiki here /wiki/index.php/Appendix to understand how it all works.
Ovidiu
1 Guest(s)