Overview#
I previously created a program to download Omeka S data.
This time, I use AWS Copilot to run the above program on a scheduled basis.
Installing AWS Copilot#
Please refer to the following.
https://docs.aws.amazon.com/ja_jp/AmazonECS/latest/developerguide/AWS_Copilot.html
Preparing Files#
Create three files in any location: Dockerfile, main.sh, and .env.
Dockerfile#
main.sh#
.env#
The following is an explanation of the parameters.
Running AWS Copilot#
Run copilot init as follows. You need to answer several questions, but this alone enables deployment to Amazon ECS.
After running the above, add the following to the end of copilot/{service name}/manifest.yml to add environment variables.
After that, deployment is possible with the following command. This command can also be used to update when files have been modified.
Summary#
I introduced a method for periodically backing up Omeka S data using Amazon ECS. We hope this is helpful for backing up Omeka S data.