This is script for clean logs, config folders with some tasks of redmine. It get readmine task number, check status on server and remove folder (files) if task is closed.
- -s (--server) address of redmine server
- -u (--user) redmine user name. This is requaired parameter
- -p (--password) redmine password name. This is requaired parameter
- -f (--folder) folder list to cleanup
- -g (--git) flag shows that need to clean git repo in folder
Example: task_cleaner -s red.some_serv.com -u user -p password -f '/tmp/logs,/tmp/configs,/tmp/code' -g