ts-onlyfree
30th August 2008, 15:12
hiho
English
however, this small script (http://www.howtoforge.com/how-to-reduce-log-file-disk-usage-with-ispconfig-or-lamp) doesnt work for me, so i asked our coder ch3ck3r (http://www.ch3ck3r.org) to script it in python
normal run with "python logclean.py" will archive only the last month.
if you want to archive other months, start it with "python logclean 2008 06" or "python logclean 2007 12"
it will NOT delete anything atm! uncomment Line 51-53 to autodelete old and archived folders!
if there are any bugs, please report them !
Deutsch
Da dieses kleine Script (http://www.howtoforge.com/how-to-reduce-log-file-disk-usage-with-ispconfig-or-lamp) bei uns nicht funktioniert, hab ich unseren Coder ch3ck3r (http://www.ch3ck3r.org) gebeten es in python zu schreiben.
In der normalen Ausführung mit "python logclean.py", packt es nur den letzen Monat.
Wenn andere Monate gepackt werden sollen, einfach nach folgendem Muster ausführen "python logclean.py 2008 06" oder "python logclean.py 2007 12"
Aktuell wird nichts gelöscht! Um alte und archivierte Ordner zu löschen, muss Zeile 51-53 auskommentiert werden!
Sollten Fehler auftreten, meldet diese bitte !
Download (http://forum.ts-onlyfree.org/wbb3/wbb/index.php?page=Thread&threadID=1107)
English
however, this small script (http://www.howtoforge.com/how-to-reduce-log-file-disk-usage-with-ispconfig-or-lamp) doesnt work for me, so i asked our coder ch3ck3r (http://www.ch3ck3r.org) to script it in python
normal run with "python logclean.py" will archive only the last month.
if you want to archive other months, start it with "python logclean 2008 06" or "python logclean 2007 12"
it will NOT delete anything atm! uncomment Line 51-53 to autodelete old and archived folders!
if there are any bugs, please report them !
Deutsch
Da dieses kleine Script (http://www.howtoforge.com/how-to-reduce-log-file-disk-usage-with-ispconfig-or-lamp) bei uns nicht funktioniert, hab ich unseren Coder ch3ck3r (http://www.ch3ck3r.org) gebeten es in python zu schreiben.
In der normalen Ausführung mit "python logclean.py", packt es nur den letzen Monat.
Wenn andere Monate gepackt werden sollen, einfach nach folgendem Muster ausführen "python logclean.py 2008 06" oder "python logclean.py 2007 12"
Aktuell wird nichts gelöscht! Um alte und archivierte Ordner zu löschen, muss Zeile 51-53 auskommentiert werden!
Sollten Fehler auftreten, meldet diese bitte !
Download (http://forum.ts-onlyfree.org/wbb3/wbb/index.php?page=Thread&threadID=1107)