Some questions from a german user with Xcloner 2.1 and server without cron allowed | 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
Some questions from a german user with Xcloner 2.1 and server without cron allowed
March 4, 2011
9:15 am
Avatar
vkr
Germany
Member
Members
Forum Posts: 7
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

First: sorry for my bad english - i hope, you can understand my questions.

We buyed Xcloner V2.1 in 2008 to backup each day the Joomla-Website of our school.

 

1. how to upgrade:

I downloaded V2.2 and now i want to know, how to upgrade (first uninstall V2.1?, prereferences take over to new version?, ...). I read the "readme.txt" => no answer. I looked here at the Forum => no Thread about this.

I think, it is good for all users, if you include next time the "how to upgrade" in the readme.txt.

 

2. what is the right upgrade:

28-02-2011 a email comes to me with the text "please upgrade".

I go to Xcloner.com and see two possibilities (V2.2 and V3.0.x). I think, V2.2 will be the correct Version for me because i found on other position "3.0.1 is beta ... only for tests". So i installed V2.2. Then i see, that V2.1 and V2.2 are on my joomla - so i uninstalled the V2.1. Then i went to V2.2-Konfiguration. There a great Icon "Upgrade Recommended" is showed

Why this? Is V2.2 not good and must i upgrade to V3.x?

 

3. use Xcloner without Cron-Job

The Web-Hoster of our school-homepage does not allow Cron-Jobs. So in 2008 the admin "Ovidiu" from joomlaplug.com helps us with a change to start the Backup each night from extern:

Original V2.1:

1: <?php
2: /**
3: * XCloner

Change:

1: <?php

2: $password= "mypassword";

3: /**

4: * XCloner

Original V2.1:

86: if(!in_array($curent_ip, $ip_list)){
87:    
88:    echo "Access Denied for ip $curent_ip!";

Change:

87: if($_REQUEST['pass'] != $password){
88: #if(!in_array($curent_ip, $ip_list)){
89:   
90:    echo "Access Denied for the provided password!";

Please tell me the changes, i must make after the upgrade to V2.2 (or 3.x?).

March 4, 2011
9:26 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Vkr! Ok, to answer your questions:

 

1.  simply download XCloner 3.0 from our site, it's a stable release and install it on your site, you can uninstall the old version first

2. please download and use V3.0, the upgrade banner you see there it's a notification banner, you can disregard it if you already are using the latest version

3. regarding the cron patch i did, I am afraid i don't remember exactly what the issue was, how are automated backups running if your host does not allow cronjobs? Are you using JCron or some other cron manager?

 

  Regards, Ovidiu

March 4, 2011
9:39 am
Avatar
vkr
Germany
Member
Members
Forum Posts: 7
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

3: each night a computer in the school automaticly goes to internet "says 'backup' to the webserver" and one hour later he uses FTP to download the newest backup-file. You made this change, because the school-computer does not have an fix ip in internet and so the password is the security-feature.

Here your mail from 2008:

Von: Ovidiu – JoomlaPlug.com [[email protected]]

Gesendet: Freitag, 8. August 2008 12:55

Betreff: cloner.cron.php script updated

Anlagen: cloner.cron.php

  Hi there! I have attached here the

administrator/components/com_xcloner/cloner.cron.php file, please overwrite the original one

  You can access the cron script as http://…/cloner.cr.....ass=mypass

  the default password being mypass, you can alter it by editing the first line of cloner.cron.php file

  Let me know if you have anymore issues! Regards, Ovidiu

March 4, 2011
10:09 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Got it, OK, if you still have access to the original cloner.cron.php file i sent you, simply upload it in the new upgraded version and it should work as before!

 

Ovidiu

March 4, 2011
10:41 am
Avatar
vkr
Germany
Member
Members
Forum Posts: 7
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

OK - i did it, but there is an problem: it works also with a wrong password and even without an password. So i think, something must be changed in the script to make the backup only, when the right password is given.

March 4, 2011
11:36 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Did you replace the administrator/components/com_xcloner-backupandrestore/cloner.cron.php file with the modified one from the previous version you had working? Try and do that, it should help.

 

Ovidiu

March 4, 2011
11:55 am
Avatar
vkr
Germany
Member
Members
Forum Posts: 7
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

XCloner! Support said:

Did you replace the administrator/components/com_xcloner-backupandrestore/cloner.cron.php file with the modified one from the previous version you had working? Try and do that, it should help.

 

Ovidiu


yes - i replaced it, but it still works even without a password - i will mail you the Link an the file

March 4, 2011
12:16 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

OK, it would be better to keep the upgraded cloner.cron.php file, and simply add the following code at the beginning, after the <?php tag, php 5.2.0 required:

$password= "mypass";
if(filter_var($_REQUEST['pass'], FILTER_SANITIZE_STRING) != $password){
echo "Access Denied";  exit;
}
March 4, 2011
12:30 pm
Avatar
vkr
Germany
Member
Members
Forum Posts: 7
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

Sorry, but "Access Denied" comes allways – even with correct password!

PHP: 5.2.17

March 4, 2011
12:48 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Could you recheck again the code, make sure you added the 

 

$password= "mypass";

 

right at the top! If you like, feel free to open a support ticket and we can manage that for you!

 

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: 737
Members: 9492
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
mherrmann89
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0