Convex Backups

Automated self hosted convex backups to s3 providers.

Deploy Convex Backups

convex-backups

orenaksakal/convex-self-hosted-backups

Just deployed

Convex Backups

Backup script for backing up self hosted convex instances, includes file storage and whole database backup via npx convex export and uploads it to s3 supported storage backups are importable to cloud or any selfhosted instance via npx convex import.

About Hosting Convex Backups

Set these env vars and you will be good to go;

CONVEX_SELF_HOSTED_ADMIN_KEY: - Your self hosted instance's admin key.

CONVEX_SELF_HOSTED_URL - Your self hosted instance's url (api).

CONVEX_URL: Your selfhosted instance's url (api).

AWS_ACCESS_KEY_ID - S3 access key ID.

AWS_SECRET_ACCESS_KEY - S3 secret access key, sometimes also called an application key.

AWS_S3_BUCKET - The name of the bucket that the access key ID and secret access key are authorized to access.

AWS_S3_REGION - The name of the region your bucket is located in, set to auto if unknown.

BACKUP_CRON_SCHEDULE - The cron schedule to run the backup on. Example: 0 5 * * *

AWS_S3_ENDPOINT - The S3 custom endpoint you want to use. Applicable for 3-rd party S3 services such as Cloudflare R2 or Backblaze R2.

AWS_S3_FORCE_PATH_STYLE - Use path style for the endpoint instead of the default subdomain style, useful for MinIO. Default false

RUN_ON_STARTUP - Run a backup on startup of this application then proceed with making backups on the set schedule.

BACKUP_FILE_PREFIX - Add a prefix to the file name.

BUCKET_SUBFOLDER - Define a subfolder to place the backup files in.

SINGLE_SHOT_MODE - Run a single backup on start and exit when completed. Useful with the platform's native CRON schedular.

SUPPORT_OBJECT_LOCK - Enables support for buckets with object lock by providing an MD5 hash with the backup file.

Deploy and Host

Simply deploy the template after setting up the env variables.

Common Use Cases

  • Backup your self hosted convex automatically to any s3 supported provider

Dependencies for Convex Backups Hosting

  • None

Deployment Dependencies

  • None

Why Deploy Convex Backups on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Convex Backups on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Postgres S3 backups
A simple NodeJS app to back up your PostgreSQL database to S3 via a cron

View Template
Tier
A single tool to configure,orchestrate and manage your entire pricing stack

View Template
Trigger.dev
Open source background jobs framework for TypeScript.