Categorygithub.com/calendar-team/sqlite-to-r2
modulepackage
0.0.0-20241204185440-e29c8a11ccb4
Repository: https://github.com/calendar-team/sqlite-to-r2.git
Documentation: pkg.go.dev

# 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:

  1. BUCKET_NAME - the name of the bucket where the db will be uploaded
  2. ACCOUNT_ID - CF account id. Check the instruction on how to find it here
  3. ACCESS_KEY_ID,and ACCESS_KEY_SECRET - the pair used for auth. Check the instructions on how to generate correct keys here
  4. DB_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