惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
T
The Blog of Author Tim Ferriss
量子位
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - Franky
小众软件
小众软件
Recent Announcements
Recent Announcements
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
美团技术团队
G
Google Developers Blog
Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
云风的 BLOG
云风的 BLOG
博客园 - 【当耐特】
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
Last Week in AI
Last Week in AI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
H
Help Net Security

Railway Blog

Where Railway is, and where it's going (Summer 2026) PaaS vs IaaS vs SaaS: What Each Means and Who Should Pick What in 2026 The Best Continuous Deployment Tools in 2026 The Best PaaS for Multi-Region Deployments in 2026 The Best Platforms for Monorepo Deployments in 2026 Compliance Isn't a Feature, It's a Posture What is BYOC (Bring Your Own Cloud)? A Developer's Guide for 2026 The Best Managed Kubernetes Hosting in 2026 The Best Container Registries in 2026 The Vanilla Cloud Tax: What Rolling Your Own on AWS Actually Costs What is a PaaS? A Developer's Guide for 2026 The Best Cloud Observability and Logging Tools in 2026 The Best PostgreSQL Hosting for Developers in 2026 The Best Multi-Region Hosting Platforms in 2026 The Best Platforms to Deploy AI Apps in 2026 (Not the Models, the Apps Around Them) Incident Report: May 19, 2026- GCP Account Suspension Counting to 3 with a new builder processing 50M+ monthly builds Railway iOS preview now available via TestFlight Kill your onboarding: selling to 10,000+ new users a day Your AI wants to nuke your database. Guardrails fix that. Better Rails for Agents: A New Remote MCP and Railway Agent in the CLI Moving Railway's Frontend Off Next.js One command deploys, there's a Stripe APP for that From registrar to deployed: buying a domain inside Railway A letter to open source builders who deserve more Networking is a black box, we used eBPF to open it Heroku Walked So Railway Can Run Security Features Your Security Team Will Love Railway Runs Open Source, Now We're Funding It Railway raises $100M Series B to unburden the builders
How to Backup Your Redis Instance
Angelo Saraceno · 2021-08-10 · via Railway Blog

Redis is a popular choice for an in-memory data structure store that also persists to disk. For many projects it is used as a database, cache, and a message broker.

At Railway, you can provision and add Redis to your project in as easy as one-click. However, there comes a time when you need to perform a backup of your Redis instance.

Recently, within our Discord, we've had a couple of users ask us how they'd go about performing a backup of their Railway Project's Redis instance. This blog post will guide you on how to do just that.

Prerequisites

Before we get started, you will need Redis installed locally. We are also assuming you are running this on a Unix based system (MacOS, Linux).

Getting Started

On one terminal instance, first run the following command. This will first start Redis locally on your machine.

redis-server

Then, on a different terminal instance, run the CLI to connect to the instance.

redis-cli

Time to Auth

The reason why we set up a local Redis instance is because we are going to designate the local Redis instance to replicate the Railway plugin in your project.

In the Terminal that is running redis-cli enter the following command to enter the password of the Redis plugin.

config set masterauth <password>

You can get the password from your Railway project's variables and then clicking the Redis tab..

Untitled
Untitled

After you configure the password, you will need to start the replication process on your local instance by entering the following command in the terminal where redis-cli is running.

SLAVEOF <host> <port>

You can get the connection url under the plugin interface for your project.

Replication Underway

After you perform that command, your local instance should begin replication. To see information about the replication status, you can enter the following in the terminal where redis-cli is running.

INFO replication

The output should look like the following

role:slave
master_host:RAILWAY_REDIS_URL
master_port:6519
master_link_status:up
master_last_io_seconds_ago:3
master_sync_in_progress:0

Retrieving Your Backup

After INFO replication shows that there is no sync in progress when you see that the sync property is 0 like: master_sync_in_progress: 0. You are now ready to save locally what is on your local Redis instance.

You can do this by entering the following command in the redis-cli

BGSAVE
CONFIG GET dir

The output of this command will tell you where in the system Redis saved the instance's data as a dump.rdb file. Now, you have your backup!

Conclusion

Before you stand down your instance, run the following in your redis-cli before you shut down redis-server. This is done so your Redis server won't attempt to sync with the Railway plugin any further.

SLAVEOF NO ONE

And with that, you should have all the information you need to backup your Redis instance on Railway! We at Railway are working to allow you to retrieve backups from the dashboard to make it easier to manage.

If you have any suggestions for more tutorials you'd like to see guides for, let us know on Discord.