Delete old backups at destination folder | General Questions and 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
Delete old backups at destination folder
April 17, 2012
5:04 pm
Avatar
Jamie F
Member
Members
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
Ovidiu Liuta
Admin
Forum Posts: 2484
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

April 18, 2012
9:39 am
Avatar
Jamie F
Member
Members
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
Ovidiu Liuta
Admin
Forum Posts: 2484
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

April 18, 2012
1:49 pm
Avatar
Jamie F
Member
Members
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
Ovidiu Liuta
Admin
Forum Posts: 2484
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

April 20, 2012
9:06 am
Avatar
Jamie F
Member
Members
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
Members
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
Ovidiu Liuta
Admin
Forum Posts: 2484
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

April 23, 2012
10:02 am
Avatar
Jamie F
Member
Members
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: 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
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 737
Members: 9462
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Robert Dumitru
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0