Log rotation script

This project demonstrates safe file rotation with archive validation and retention policies.

Design goals

  • Never delete a log without confirming archive creation.
  • Keep a predictable archive naming scheme.
  • Write progress logs for audit trails.

Example structure

bash
/opt/tools/rotate-logs
/opt/tools/rotate-logs/rotate.sh
/opt/tools/rotate-logs/config.env