A simple script to transfer files from local path to AWS S3
After git pull, run
composer install
Create .env
in your project root with the following:
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
AWS_BUCKET=
LOCAL_SOURCE_PATH="./path/to/directory"
After completing above, run
php script.php
- Transfer is done synchronously
- Files are copied, original files are not deleted.