Sample cron job resources to backup a simple wordpresse installation.
- A docker image including ASW-CLI
- AWS Credentials to access your AWS S3 bucket
Job 1 : worpress
- Zip the
wwwinstallation directory - Sent it to S3 bucket
Job 2 : mysql
- Create sqldump of target database
- Sent it to S3 bucket
- For aws-cli :
FROM python:3.7-alpine
RUN pip3 --no-cache install awscli
ENTRYPOINT ["aws"]
Dump command
One line with compression