
Deploy Bucket Sync
Sync files from one bucket to another, using rclone
Sync Buckets
Just deployed
Deploy and Host Bucket Sync on Railway
A service using rclone which runs once and syncs all files from a source bucket to a destination bucket. Can be used once to transfer files to a new bucket, or regularly with a cron to backup buckets.
For a better experience when entering the necessary configuration variables, deploy this template from your existing project (Create -> Template -> Search "Bucket Sync").
About Hosting Bucket Sync
This template assumes you have 2 buckets already created:
- a source bucket, where the files are stored
- a target bucket, where the files should be synced to
Create the target bucket before deploying this template, if it doesn't yet exist.
When you configure and deploy this template, it will start to sync your files. You can add a cron schedule if you want to sync it regularly.
⚠️ Files are synced using public networking, so the upload from the service to the new bucket counts as billable service egress.
Common Use Cases
- Migrate buckets
- Move a bucket to a different region
- Backup a bucket
Dependencies for Bucket Sync Hosting
- You need 2 buckets: the source bucket where your files are located, and a destination bucket where the files should be copied to (e.g. a new empty bucket)
Deployment Dependencies
This template uses rclone's official docker image.
Why Deploy Bucket Sync 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 Bucket Sync 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
Sync Buckets
rclone/rclone:latestDEST_BUCKET_NAME
Destination bucket: Bucket name from the Credentials Tab
SOURCE_BUCKET_NAME
Source bucket: Bucket name from the Credentials Tab
RCLONE_CONFIG_DEST_ENDPOINT
Destination bucket: Endpoint URL
RCLONE_CONFIG_SOURCE_ENDPOINT
Source bucket: Endpoint URL
RCLONE_CONFIG_DEST_ACCESS_KEY_ID
Destination bucket: Access Key ID
RCLONE_CONFIG_SOURCE_ACCESS_KEY_ID
Source bucket: Access Key ID
RCLONE_CONFIG_DEST_SECRET_ACCESS_KEY
Destination bucket: Secret Access Key
RCLONE_CONFIG_SOURCE_SECRET_ACCESS_KEY
Source bucket: Secret Access Key