Prerequisites
- A Railway account with active project(s)
- Railway Buckets in at least two regions that you want to replicate
- DataRaven account with team access
Railway Buckets provide S3-compatible object storage. DataRaven treats them as object storage locations, enabling automated replication across regions.
Step 1: Gather Your Bucket Credentials
For each bucket you want to replicate, you’ll need to collect the S3 credentials from the Railway console:- Open your Railway dashboard
- Navigate to your project and select the bucket
- Go to the Credentials tab
- Note the following values:
- Bucket Name: e.g., `dr-bak-west-0iofqnrozari“
- Access Key ID: Your S3 access key
- Secret Access Key: Your S3 secret key
- Endpoint URL: e.g.,
https://t3.storageapi.dev
Step 2: Configure Source Bucket Location
Via DataRaven Dashboard
- Go to Locations in your team workspace
- Click Add Location
- Select Railway as the provider type
-
Fill in the following details:
- Display Name: e.g., “Railway US-East Bucket”
- Bucket Name: The bucket name from your credentials (e.g.,
dr-bak-west-0iofqnrozari) - Access Key ID: Your S3 access key (or reference a vault secret)
- Secret Access Key: Your S3 secret key (or reference a vault secret)
- Endpoint URL: The endpoint from your credentials (e.g.,
https://t3.storageapi.dev)
- Click Test to verify the connection
- Click Save
Step 3: Configure Destination Bucket
- Repeat Step 2 for your destination bucket
- Use the Display Name: e.g., “Railway EU-West Bucket”
- Use the bucket name and credentials for your destination bucket (e.g.,
dr-bak-west-0iofqnrozari)
Step 4: Create a Replication Task
- Navigate to Tasks in your workspace
- Click Create Task
- Configure the task:
- Task Name: e.g., “Replicate US→EU Buckets”
- Source Location: Select your source Railway bucket
- Destination Location: Select your destination Railway bucket
- Task Type: Choose
sync(one-way sync) orcopy(copies new/changed files without deleting) - Filters: Optionally set path filters to replicate only specific directories or file types
Schedule Options
Use cron expressions to set when your replication runs. Enter a standard cron schedule or use shortcuts:@daily— Runs every day at midnight@weekly— Runs every Sunday at midnight- Custom cron — e.g.,
0 2 * * *for 2 AM every day
To set up notifications for task completion or failures, configure them in Notifications.
Step 5: Monitor Replication
Dashboard Monitoring
- Go to Tasks and select your replication task
- View:
- Last Execution: When the sync last ran
- Status: Success/In-progress/Failed
- Data Transferred: Total bytes synced
- Execution Time: How long the sync took
View Detailed Logs
- Click on an execution in the task history
- View logs including:
- Files synced/skipped
- Any errors or warnings
- Performance metrics
Set Up Alerts
- Navigate to Notifications in settings
- Create a notification rule for your replication task
- Choose channel: Email, Slack, or Webhook
- Configure when to notify: On success, failure, or both
Best Practices
Performance Optimization
- Filter by path: If you only need to replicate specific directories, use path filters in your task configuration to reduce transfer time and costs
- Schedule during off-peak hours: Run large syncs at times when traffic is lowest
- Use Daily or Weekly for large datasets: Hourly syncs can be expensive if your data is large
Cost Management
- Railway Bucket egress is free: Cross-region transfers between Railway Buckets don’t incur egress charges
Troubleshooting
”Connection Failed” Error
Cause: Invalid S3 credentials or incorrect endpoint URL Solution:- Verify your Access Key ID and Secret Access Key are correct
- Confirm the Endpoint URL matches what’s shown in Railway console (e.g.,
https://t3.storageapi.dev) - Ensure the bucket name is exact (Railway generates unique names with hashes)
- Test the connection again after updating credentials
Slow Transfer Speed
Cause: Free tier accounts have limitations on transfer performance Solution:- Free tier transfers are single-threaded with a 1 GB/s speed cap. Upgrade to Pro for parallel transfers and faster speeds.
- Consider splitting large datasets into smaller sync jobs
- Run syncs during off-peak hours to avoid network congestion
Next Steps
- Learn about general task creation for other use cases
- Explore vault integration for managing credentials securely