Tool

Hspeirs's picture
tool
Reads:

5755

Score:
5
5
1
 
Comments:

2

CleanOld 1.01

Author Info

19 May 2009 - 2:44pm
Submitted by: Hspeirs

(View Disclaimer)

license: 
Freeware
home page url: 
www.haitch.net

load cleanold <path> [/DM=days | /DA=days] [/L=<path to log file>] [/OW] [/sys]

Where:

<path> is the directory path you want to clean. If the path contains
spaces, enclose the path in qoutes. eg "data:user dirs"

/DM=days - specifies the number of days worth of modified files to save. eg, to delete anything not modified in the last 15 days use /DM=15

/DA=days - specifies the number of days worth of accessed files to save. eg, to delete anything not accessed in the last 100 days use /DA=100

/DC=days - specifies the number of days worth of created files to save. eg, to delete anything not created in the last 100 days use /DC=100

/L=<path to logfile> - specifies where to write the log file if desired.

/OW - Overwrite the logfile instead of appending

/EMPTY - Delete any empty directories in the path

/sys is an override to allow cleaning the sys volume. By default cleanold will not allow cleaning the sys: volume.

Attachmentサイズ
cleanold.zip44.29 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

conrake's picture

Just what I needed

Submitted by conrake on 25 June 2009 - 8:48am.

This will help us keep temporary storage areas clean by running this from a cron script. The only issue I notice so far is that the /EMPTY parameter is not mentioned in the text file that comes with the utility.

Hspeirs's picture

Conrake, Glad it's going to

Submitted by Hspeirs on 25 June 2009 - 12:36pm.

Conrake,

Glad it's going to be of use to you. Thanks for pointing out the documentation omission, I've corrected that and sent CoolSoultions and updated file.

Hamish.

© 2013 Novell