Ubuntu based docker image with necessary tools for storing and backing up data.
- sqlite3 database
- cron
- python backup script
- python restore script
Dockerfile creates an ubuntu based image, then:
- updates packages using update
- installs packages:
- cron
- python
- copies files
- starts cron
- Download or clone the repository
- Edit crontab.txt - change time when cron executes script and/or command
- Create .env file with
- DATABASE_PATH
- DB_BACKUP_DIR
- DATABASE_NAME
- Build docker image.
docker build --tag docker_image_name
- Run docker image (remember to include .env file)
docker run -it --rm -d --env-file .env docker_image_name