Skip to content
/ Maid Public

A little python program to help keep a linux box tidy

Notifications You must be signed in to change notification settings

Ark6476/Maid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Maid is a little python script I wrote for keeping things tidy on my linux servers.


Example:
Let's say you wanted to remove log files that were older than a month old. However, you don't want to delete the latest log file. All you have to do is edit your maidconf file (located in either /etc/maidconf ~/.maidconf) as such:

[Clean up old log files]
directory=/path/to/log/files
match=foo.log.* #regular expression
age=0y-1m-0d-0h-0m
keep=1
action=rm -f


Maid can be combined with cron to periodically organize files.

About

A little python program to help keep a linux box tidy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages