|
From: James W. B. <jbe...@mi...> - 2003-08-13 20:13:19
|
Hi: I have an administrative question concerning BOBS. Does someone have some sort of script that periodically runs on the BOBS backup area and deletes all files over X days old? It appears that something like this would be nice since it keeps your hard disk from just filling up. Any chance of something like this making it into the project? (self serving Feature Request from a non-coder ;)) If I'm missing something let me know. Thanks James |
|
From: Rene R. <re...@gr...> - 2003-08-13 20:49:08
|
On Wed, 2003-08-13 at 21:54, James W. Beauchamp wrote: > Hi: > I have an administrative question concerning BOBS. Does someone have some > sort of script that periodically runs on the BOBS backup area and deletes > all files over X days old? It appears that something like this would be > nice since it keeps your hard disk from just filling up. Any chance of > something like this making it into the project? (self serving Feature > Request from a non-coder ;)) > You just hit the soft spot ;) I would love to include something like that and haave been thinking about it for a long time. Personal and work issues has kept me from working on this. I have been doing it manually. It always depends on the load the servers are under. Sometimes I just delete files of certain types, like quicktime and avi which are larger than say 100 MB in size and older than 30 days. Then if I need more space I delete those larger than 50 MB and older than 30 days and so on.. This is depends a lot on the work people are doing. I suggest you look at the "find" man pages for help with this. If you make a shell script for doing this please consider sending it to the list. Maybe I can use it for bobs. It may be included as an option when I have the resources to work with it. If you really want something good done, I suggest you try finding a kind programmer that will help you. I'll be happy to include it with bobs if it isn't a really ugle hack. If it works it can always be refined. Implementing a delete feature in bobs wouldn't be that hard. The search function could search for the files and an added "delete files" button could delete them. The problem would be one of security. A check would have to be made to ensure that only admins delete files. Once that is working it could be made part of the cron jobs. I would also guess that would be fairly easy. Cheers Rene |
|
From: Rene R. <re...@gr...> - 2003-08-14 13:56:27
|
This is an example usage of find:
It will find all files modified more than 30 days ago which are larger
than 5000KB and list them using ls long format (ls -l)
find /home/rene/ -mtime +30 -size +5000k -type f -exec ls -l {} \;
If you want to delete files you can replace "ls -l" with "rm -f" but be
careful. You don't get any warnings.
I usually test with "ls -l" before deleting. It gives an idea od what
I'm deleting.
You can also spice this up by only searching for files which end in
".avi" ".mpg" ".mov" and so on.
Throw a bunch of these in a script file and use cron to execute it every
night if you don't want to do it manually.
Cheers
Rene
On Wed, 2003-08-13 at 21:54, James W. Beauchamp wrote:
> Hi:
> I have an administrative question concerning BOBS. Does someone have some
> sort of script that periodically runs on the BOBS backup area and deletes
> all files over X days old? It appears that something like this would be
> nice since it keeps your hard disk from just filling up. Any chance of
> something like this making it into the project? (self serving Feature
> Request from a non-coder ;))
>
> If I'm missing something let me know.
>
> Thanks
>
> James
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Bobs-devel mailing list
> Bob...@li...
> https://lists.sourceforge.net/lists/listinfo/bobs-devel
--
Rene Rask <re...@gr...>
|
|
From: James W. B. <jbe...@mi...> - 2003-08-14 16:51:27
|
Rene:
Thanks for the suggestion, explanation and the options! I'm considering the
programming option because I think its really useful. I'll let you know
what I come up with (if anything) before I do it.
James
----- Original Message -----
From: "Rene Rask" <re...@gr...>
To: <bob...@li...>
Sent: Thursday, August 14, 2003 9:45 AM
Subject: Re: [Bobs-devel] Periodic Cleanup of Backup Area
>
> This is an example usage of find:
>
> It will find all files modified more than 30 days ago which are larger
> than 5000KB and list them using ls long format (ls -l)
>
> find /home/rene/ -mtime +30 -size +5000k -type f -exec ls -l {} \;
>
> If you want to delete files you can replace "ls -l" with "rm -f" but be
> careful. You don't get any warnings.
>
> I usually test with "ls -l" before deleting. It gives an idea od what
> I'm deleting.
> You can also spice this up by only searching for files which end in
> ".avi" ".mpg" ".mov" and so on.
> Throw a bunch of these in a script file and use cron to execute it every
> night if you don't want to do it manually.
>
> Cheers
>
> Rene
>
> On Wed, 2003-08-13 at 21:54, James W. Beauchamp wrote:
> > Hi:
> > I have an administrative question concerning BOBS. Does someone have
some
> > sort of script that periodically runs on the BOBS backup area and
deletes
> > all files over X days old? It appears that something like this would be
> > nice since it keeps your hard disk from just filling up. Any chance of
> > something like this making it into the project? (self serving Feature
> > Request from a non-coder ;))
> >
> > If I'm missing something let me know.
> >
> > Thanks
> >
> > James
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> > Data Reports, E-commerce, Portals, and Forums are available now.
> > Download today and enter to win an XBOX or Visual Studio .NET.
> >
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> > _______________________________________________
> > Bobs-devel mailing list
> > Bob...@li...
> > https://lists.sourceforge.net/lists/listinfo/bobs-devel
> --
> Rene Rask <re...@gr...>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
> _______________________________________________
> Bobs-devel mailing list
> Bob...@li...
> https://lists.sourceforge.net/lists/listinfo/bobs-devel
|