Cron Allowed IP - based on Dynamic DNS | Feature Request | Free Forums

All Wordpress Forum requests have been moved to Wordpress Support Forums

 

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Cron Allowed IP - based on Dynamic DNS
December 5, 2012
9:14 pm
Avatar
Luc
Member
Forum Posts: 12
Member Since:
November 19, 2012
sp_UserOfflineSmall Offline

Hi Xcloner devloppers,

 

would it be possible to add the ability to put dynamic IP style of address instead of an IP number. This dynamic IP address would then always lead to my last acquired IP-address.

 

So for example I would use a DynDNS (you have a lot of free alternatives, freedns, no-ip.com, buddyNS,…) style of functionality, fill out my personal DYNDNS address in XCloner, and XCloner could than easily determine my actual IP address based on an DNS address, which would lead to an IP.

Maybe I could run the script twice, so you can get the new IP from the DynDNS.

 

Kind regards,

 

Luc

December 6, 2012
9:45 pm
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

HI Luc, this request is on the dev list, so we will add it in one of the future versions. Meanwhile, you can edit your cloner.cron.php file and remove that limitation found on line 31, simply remove that exit there to let the cron continue. You will also find there the code for adding your hostname based limitation which i think can be easily altered.

 

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
December 12, 2012
9:38 am
Avatar
Luc
Member
Forum Posts: 12
Member Since:
November 19, 2012
sp_UserOfflineSmall Offline

Ovidiu,

how can I add my dynamic address (xyz.dyndns.org) to this ip_list ?

$ip_list[] = $_SERVER['SERVER_ADDR'];
I am not so familiar with php script.
I can imagine I can just remove the if, to have no checking at all, but checking for my dynamic ip would be nicer.
if(!in_array($curent_ip, $ip_list)){
echo "Access Denied for ip $curent_ip!";
exit;
}
I can test it for you (even if you are not 100% sure), and report the result.
Kidn regards,
Luc
December 12, 2012
8:57 pm
Avatar
Luc
Member
Forum Posts: 12
Member Since:
November 19, 2012
sp_UserOfflineSmall Offline

Ovidiu,

 

I have solved it. I changed the code to the following:

 

$curent_ip = $_SERVER["REMOTE_ADDR"];
$dynamic_ip = gethostbyname('xyz.dyndns.org');
if($curent_ip != $dynamic_ip){
  echo "Access Denied for ip $curent_ip!";
exit;
}

 

this seems to be working.

Unfortunately now I have another problem:

Wehn I execute the cronjob php from the configurqtion tab, 2 tar files are being generated instead of 1. When I enable compression 4 files are being generated instead of 1. Files are always of almost same size (32Mb for Tar, 17 Mb for compressed).

 

Do you have any idea why it is run multiple times ?

 

Kind regards,

 

Luc

December 13, 2012
8:41 am
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

No idea why that happens, try testing it with a scron scheduler and see how it goes.... What is the timestamp for each of the files?

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
December 20, 2012
7:22 am
Avatar
Luc
Member
Forum Posts: 12
Member Since:
November 19, 2012
sp_UserOfflineSmall Offline

I did use a cron scheduler (from home using wget (no retries))

and I get the following:

backup_2012-12-15_23-20_www.***********-sql-nodrop.tgz 19.31 MB Sat 15th Dec 2012 23:22:36 (GMT +0000)

backup_2012-12-15_23-21_www.***********-sql-nodrop.tgz 28.99 MB Sat 15th Dec 2012 23:22:36 (GMT +0000)  
backup_2012-12-15_23-22_www.***********-sql-nodrop.tgz 19.23 MB Sat 15th Dec 2012 23:23:04 (GMT +0000)

 

strange thing are:

1 and 2 seems to have been started at the same time, but are resulting in 2 different sizes (the differnt size is something new, never seen that before)

3 was started different time.

Kind regards,

 

Luc

December 24, 2012
1:03 pm
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Try setting the compress backup option back to No and see if it helps...

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
Forum Timezone: UTC 0

Most Users Ever Online: 867

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tom_1: 70

mlguru: 33

Django29: 29

Andy: 21

D: 21

Marcus: 20

Member Stats:

Guest Posters: 737

Members: 41546

Moderators: 1

Admins: 1

Forum Stats:

Groups: 3

Forums: 7

Topics: 2517

Posts: 8419

Newest Members:

Keypadasto Keypadasto

Moderators: Ovidiu - Support!: 0

Administrators: XCloner! Support: 2485

Quick contact

place

Hi there, my name is Ovidiu Liuta and i support the XCloner! project
XCloner is a Joomla backup component, Wordpress backup plugin and Free website backup tool.
Contact me here!

About company

XCloner.com is a dynamic company focusing on providing backup and recovery solutions for small to medium websites.
We are based in Romania and offer 24/7 support through forums and our private ticket system for Premium users support.

© 2020 XCloner - Website Backup and Restore made simple
All Rights Reserved | Privacy Policy