Using aws and sqlite CLIs, it copies a database file to S3.
5.4K
Uploads an sqlite database into an S3 in format which results in e.g. 2021-18-04_13-43-38.db.
DATABASE_PATH of an sqlite db to backupBUCKET_NAME to upload the backup intoPREFIX to prefix the name of the backup file during upload, keep empty to upload to bucket root$ docker run \
-e BUCKET_NAME=xxx \
-e DATABASE_PATH=/data/database.db \
-v ~/.aws:/root/.aws \
-v /path/to/db:/data \
--rm porkbrain/s3-sqlite-backup:latest
Content type
Image
Digest
Size
200.3 MB
Last updated
over 5 years ago
docker pull porkbrain/s3-sqlite-backup