Create a bash script for download all (.png|.jpg) images from a CDN, transform to (.webp) and Load in the same CDN and teh correct directory
- s3cmd: S3cmd is a free command line tool and client for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol
- Write a bash script that allows download all (.png|.jpg) images from a CDN, transform to (.webp) and Load in the same CDN and teh correct directory
s3cmd |
---|
This script download, transform and load to space CDN
We have to assign execute permissions to be able to execute it correctly by Cron, otherwise it will not have execute permissions (Do not forget config your .env and add your database credentials):
chmod ugo+x script.sh
Run the main script.
./script.sh
This project was written by:
- Programmer :