
Searching for solutions led me to S3Tools and the like... open source or paid wrappers to bring S3 to the command line. I was more inclined to write something myself... I'm not real happy putting my S3 keys in programs like this.
Then I found AWS CLI from Amazon. It just works! I did a pip install, filled in my credentials, and 2 minutes later had a differential backup working from Linux to S3. Testing with changes, additions, and deletions all worked as expected.
Once tested, I added the below to my nightly cron backup script...
aws s3 sync /var/www/html/img s3://my_prestashop_bucket/img
No comments:
Post a Comment