Page 1 of 1

log rotation

Posted: 13 Jul 2013, 14:17
by frzguida
is possible to rotate log files?
some feed in my service is bad and update.php doesn't update more, but i can't understand where is the problem.

thanks

Re: log rotation

Posted: 13 Jul 2013, 15:11
by ldidry
is possible to rotate log files?

Yes. Use logrotate, that's why it has been written.

some feed in my service is bad and update.php doesn't update more, but i can't understand where is the problem.

Maybe this could :
1. be in another thead (can't see why this problem is in a thread entitled "log rotation")
2. be written with some log, since we are not prescient, we can't find errors without some data.

Re: log rotation

Posted: 13 Jul 2013, 16:30
by Aldursil
frzguida wrote:is possible to rotate log files?


I found the below article that shows how to do a backup and backup rotation with a very simple script. You can modify it for your directory structure and how many backups you want to keep. then run it with cron.

http://tso.bzb.us/2013/05/postgresql-da ... edora.html

Re: log rotation

Posted: 15 Jul 2013, 12:04
by frzguida
thanks at all