FTP connection problems | Joomla Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
FTP connection problems
July 29, 2012
10:35 am
Avatar
Guest
Guests

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

July 29, 2012
1:22 pm
Avatar
Guest
Guests

Manage to get Xcloner to connect via ftp.

 

Can I setup Xcloner to automatically backup to ftp and dellete the local backup file when it is done?

 

If yes, how?

 

Cheers,

 

Mike

July 29, 2012
6:21 pm
Avatar
Guest
Guests

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

July 29, 2012
10:03 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Correct cron command should look like

 

/usr/bin/php  /home/sites/mysite.com/public_html/administrator/components/com_xcloner-backupandrestore/cloner.cron.php multicron.php

 

Ovidiu

July 30, 2012
7:38 am
Avatar
Guest
Guests

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

July 30, 2012
9:46 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

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

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10048
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar Vera
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0