Delete old backups at destination folder | 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
Delete old backups at destination folder
April 17, 2012
5:04 pm
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

Hi there

I have just started using XCloner and was wondering if there is any way to auro delete backups from the remote storage location that I have set XCloner to FTP up to?

Many thanks

Jamie

April 17, 2012
8:49 pm
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Jamie, at the moment that option is not yet implement, but it's pretty easy to add, simply check the cloner.cron.php file inside your install folder, you will find there the code to modify as needed!

 

I will look into getting this added in the next version! Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
April 18, 2012
9:39 am
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

Thanks for the reply Ovidiu

To make the necessary change, is it just a question of editing the code:

######## DELETING OLDER BACKUPS ##############################################

if($_CONFIG['cron_file_delete_act']){

logxx("<br />\nDeleting older backups than ".$_CONFIG['cron_file_delete']." days: ");
delete_older_backups($clonerPath);

}

??

 

If so, what should I edit it to say, for example, you want to keep 30 days worth of backup before the system starts deleting?

Many thanks

 

Jamie

April 18, 2012
11:24 am
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

In XCloner Config Cron tab there is an option for defining the delete backups older than variable option. Based on that, the process will start the delete_older_backups() function from where you can add the ftp delete code.

 

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
April 18, 2012
1:49 pm
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

OK, I had already done that (and set it to 7 days), but there are now 9 backups (1 a day) as you can see from this screenshot in the destination folder which is a remote FTP site…..

Image Enlarger

April 19, 2012
5:38 pm
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Did you add the ftp delete code? IF so, try and check the cron log output as well to see if there are any error messages related to that!

 

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
April 20, 2012
9:06 am
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

Hey Ovidiu

 

Whats the FTP Delete code and where would I find it and where would I put it?

 

Thanks

 

Jamie

April 22, 2012
1:08 pm
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

OK I think I may have missed the point here.... is the delete code the code that I put in an earlier post on this thread?

If it is, to make it active, do I just remove the xx from logxx ?? Is there anything else i would need to do with the code??

And in Xcloner, I just set delete backups to active and choose the nbumber of days?

Thanks

Jamie

April 23, 2012
9:09 am
Avatar
XCloner! Support
Admin
Forum Posts: 2485
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Jamie, no, the code is not here, you will probably need to create it first. And yes, in XCloner you only need to activate and setup the number of days you want to keep the backup for...

Ovidiu

Please consider our XCloner Premium Support or making a Donation XCloner.com – Backup Made Easy!
April 23, 2012
10:02 am
Avatar
Jamie F
Member
Forum Posts: 19
Member Since:
April 17, 2012
sp_UserOfflineSmall Offline

Thanks Ovidiu....

 

Sorry to be a pain, but how and what would I create to achieve this and where would I put it please?

 

Thanks

 

Jamie

Forum Timezone: UTC 0

Most Users Ever Online: 867

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tom_1: 70

mlguru: 33

Django29: 29

D: 21

Andy: 21

Marcus: 20

Member Stats:

Guest Posters: 737

Members: 41559

Moderators: 1

Admins: 1

Forum Stats:

Groups: 3

Forums: 7

Topics: 2517

Posts: 8419

Newest Members:

Seriesvox Seriesvox

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