# README
sqlite-to-r2
This tool can be used to backup an sqlite db file to R2.
K8S
To use this tool in K8S, add a new container with this tool alongside the main container that writes to the db file.
It expects a few env variables to be set in order to run:
BUCKET_NAME
- the name of the bucket where the db will be uploadedACCOUNT_ID
- CF account id. Check the instruction on how to find it hereACCESS_KEY_ID
,andACCESS_KEY_SECRET
- the pair used for auth. Check the instructions on how to generate correct keys hereDB_FILE_PATH
- the path to the sqlite db file for which the backup will be created
Check an example here
# Constants
No description provided by the author