Wednesday, 7 August 2013

How to take backup of log files in symfony 1.4?

Hi All,

Execute following command on your project root folder:

php symfony log:rotate frontend prod --period=1 --history=5


In above command,
period 1 means:
    frontend_prod.log contains 1 day log data and very next day backup of same file will be saved under log/history folder and also empty it.
history 5 means:
    Under log/history folder, backup of 5 days will be stored only.


Cheers!!!

1 comment:

  1. This post will be very useful to us....i like your blog and helpful to me..
    Dedicated PHP Developers in India

    ReplyDelete