Course Assignment - Module 7 | upGrad
Automation script to perform the following:
- Update repositories and upgrade all packages of the system.
- Install Apache web server package if it's missing in the system.
- Start Apache webserver if it's not running.
- Enable Apache webserver service to start on boot of system automatically.
- Create an archive of Apache Access and Error Logs in tar format stored in /var/log/apache2 directory and store archive in /tmp directory.
- Install AWS CLI package if it's missing in the system.
- Run AWS CLI command to copy tar archive to S3 Bucket.
- Create Book Keeping inventory file and dump log details.
- Create cron job to run this script everyday.