Unique backup names | General Questions and Support | 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
Unique backup names
December 23, 2010
9:16 pm
Avatar
Guest

I've had a quick look on the forum, but didn't see anything mentioned about my question: how do I give a backup a unique name while setting up mkultiple cron jobs, such that the backup instances are not overwritten. As far as I can see in my testing, you can only preserve backup instances if you let the script give the name, whereby the date and time stamp provide the uniqueness that ensures that files are not overwritten. When you give your own name, there is only one backup instance (the latest) at any time, since the files are overwritten as they have the same name (the one you gave).

 

Is there a way of passing date and time variables to the script along with a unique (fixed) name string, so that many backup instances can be preserved?

 

Thanks!

December 23, 2010
11:26 pm
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Charlie, unfortunately the unique option(date/time stamp) is only available when the backup name are auto-generated. The cron script cloner.cron.php however can be easily be adjusted to accommodate your changes.

 

Regards, Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
December 24, 2010
9:15 am
Avatar
Guest

Hi Ovidiu, thanks very much for coming back so quickly. I've looked again at the cloner.cron.php file and wonder whether the adjustments needed are around:

if($_CONFIG[cron_bname]!="")
 $_REQUEST['bname'] = $_CONFIG[cron_bname];

Not being hot on these things, I can't work out what changes to make. Kindly put me ouit of my misery! LaughLaugh

December 24, 2010
9:32 am
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Simply replace this line

 

$_REQUEST['bname'] = $_CONFIG[cron_bname];

 

with

 

$_REQUEST['bname'] = $_CONFIG[cron_bname]."-".date("Y-m-d_H-i");

 

to get a unique name based on date

 

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
December 24, 2010
10:39 am
Avatar
Guest

Brillliant! The change works beautifully; no doubt you are a star, Ovidiu!

Thanks very much for a superb piece of software.

All I need to do now is head to Paypal to make that donation I have been thinking of... 😉

Forum Timezone: UTC 0

Most Users Ever Online: 867

Currently Online:
15 Guest(s)

Currently Browsing this Page:
2 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:

EOTechqib EOTechqib

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