Develop a Python script for automated server log rotation and archiving — Development Task