#1  
Old 28th July 2010, 20:19
admins admins is offline
Senior Member
 
Join Date: Apr 2009
Location: Switzerland
Posts: 210
Thanks: 6
Thanked 6 Times in 3 Posts
Default script problem

Hi all

I've the backupscript of franz on my server. My problem is now, that i couldn't enable, that the script delete backups wich are older than ...

How could I delete folders and files on the path /backup if they are older than a month easy per script?

Thanks
admins
Reply With Quote
Sponsored Links
  #2  
Old 29th July 2010, 15:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Take a look at the find command:
Code:
man find
The /usr/local/sbin/mysqlbackup.sh script on http://www.howtoforge.com/back_up_my..._interruptions has an example how to put this to use.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 29th July 2010, 15:45
Franz Franz is offline
Senior Member
 
Join Date: Jul 2009
Location: Cakovec
Posts: 117
Thanks: 7
Thanked 24 Times in 18 Posts
Send a message via Skype™ to Franz
Default

Quote:
Originally Posted by admins View Post
Hi all

I've the backupscript of franz on my server. My problem is now, that i couldn't enable, that the script delete backups wich are older than ...

How could I delete folders and files on the path /backup if they are older than a month easy per script?

Thanks
admins
HI,
I'm glad somebody use my script

command is:

find ... -mtime +10 ..

it delete files older then 10*24h+24h
so it is 11 days
__________________
my PAGE
VoIP
my IT help blog
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup script for ISPConfig 3 datahellas Tips/Tricks/Mods 6 22nd April 2012 16:16
Problem with Perl Script in Linux Web Browser sakthi Programming/Scripts 1 14th December 2009 09:18
problem with script DDD_DDD Server Operation 10 7th December 2009 15:00
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Virtual users... Ubuntu 8.04 spaceuser HOWTO-Related Questions 12 19th June 2008 08:04


All times are GMT +2. The time now is 09:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.