{"id":30318,"date":"2026-12-05T22:05:18","date_gmt":"2026-12-05T22:05:18","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=30318"},"modified":"2026-12-05T22:05:18","modified_gmt":"2026-12-05T22:05:18","slug":"how-to-backup-dump-restore-redis-database","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-to-backup-dump-restore-redis-database\/","title":{"rendered":"How to backup \/ dump &#038; Restore redis database?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">To back up Redis, write a fresh RDB snapshot (<code>dump.rdb<\/code>) and copy it somewhere safe. To restore it, stop Redis, put the snapshot in the data directory and start Redis again. This guide covers the steps above plus the parts they leave out: non-blocking backups, remote backups with <code>redis-cli --rdb<\/code>, the full restore procedure, servers with AOF enabled, Docker, and automation.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">$ redis-cli\r\n<span class=\"hljs-number\">127.0<\/span><span class=\"hljs-number\">.0<\/span><span class=\"hljs-number\">.1<\/span>:<span class=\"hljs-number\">6379<\/span>&gt; auth mypassword\r\n<span class=\"hljs-number\">127.0<\/span><span class=\"hljs-number\">.0<\/span><span class=\"hljs-number\">.1<\/span>:<span class=\"hljs-number\">6379<\/span>&gt; CONFIG GET dir\r\n<span class=\"hljs-number\">127.0<\/span><span class=\"hljs-number\">.0<\/span><span class=\"hljs-number\">.1<\/span>:<span class=\"hljs-number\">6379<\/span>&gt; SAVE\n<span class=\"hljs-number\">127.0<\/span><span class=\"hljs-number\">.0<\/span><span class=\"hljs-number\">.1<\/span>:<span class=\"hljs-number\">6379<\/span>&gt; quit\r\n\r\nThis ensures dump.rdb is completely up-to-date, and shows us where it is stored (<span class=\"hljs-regexp\">\/var\/<\/span>lib\/redis\/dump.rdb <span class=\"hljs-keyword\">in<\/span> <span class=\"hljs-keyword\">this<\/span> <span class=\"hljs-keyword\">case<\/span>). dump.rdb is also periodically written to disk automatically.\n\n$ cd \/<span class=\"hljs-keyword\">var<\/span>\/lib\/redis\n$ cat dump.rdb\n<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>dump.rdb is your redis backup file<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How Redis persistence works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Redis keeps its data in memory and can persist it to disk in two ways. <strong>RDB<\/strong> writes a point-in-time snapshot of the whole dataset to a single compact binary file, <code>dump.rdb<\/code> by default. <strong>AOF<\/strong> (append-only file) logs every write operation. For backups, the RDB file is what you want: it is one file, it is portable between servers, and Redis loads it at startup.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Setting<\/th><th>What it controls<\/th><th>How to check<\/th><\/tr><\/thead><tbody><tr><td><code>dir<\/code><\/td><td>Directory where the RDB (and AOF) files live<\/td><td><code>CONFIG GET dir<\/code><\/td><\/tr><tr><td><code>dbfilename<\/code><\/td><td>Name of the RDB file (default <code>dump.rdb<\/code>)<\/td><td><code>CONFIG GET dbfilename<\/code><\/td><\/tr><tr><td><code>save<\/code><\/td><td>Automatic snapshot rules, e.g. <code>3600 1 300 100 60 10000<\/code><\/td><td><code>CONFIG GET save<\/code><\/td><\/tr><tr><td><code>appendonly<\/code><\/td><td>Whether AOF is on. If it is, Redis loads the AOF instead of the RDB at startup<\/td><td><code>CONFIG GET appendonly<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Always check <code>dbfilename<\/code> as well as <code>dir<\/code>. If someone has renamed the RDB file, backing up <code>dump.rdb<\/code> copies a stale or missing file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Take a backup without blocking Redis<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The example above uses <code>SAVE<\/code>, which runs the snapshot in the main Redis thread. No client gets served until it finishes, and on a large dataset that can take seconds or minutes. On a live server, use <code>BGSAVE<\/code> instead. It forks a child process that writes the snapshot while Redis carries on serving requests.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Avoid typing the password on the command line (keeps it out of shell history and ps)<\/span>\nexport REDISCLI_AUTH=<span class=\"hljs-string\">'mypassword'<\/span>\n\nredis-cli CONFIG GET dir\nredis-cli CONFIG GET dbfilename\n\nredis-cli LASTSAVE          <span class=\"hljs-comment\"># Unix timestamp of the last successful save<\/span>\nredis-cli BGSAVE            <span class=\"hljs-comment\"># -&gt; Background saving started<\/span>\n\n<span class=\"hljs-comment\"># Wait until the save has finished and succeeded<\/span>\nredis-cli INFO persistence | grep -E <span class=\"hljs-string\">'rdb_bgsave_in_progress|rdb_last_bgsave_status'<\/span>\n<span class=\"hljs-comment\"># rdb_bgsave_in_progress:0<\/span>\n<span class=\"hljs-comment\"># rdb_last_bgsave_status:ok<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">When <code>LASTSAVE<\/code> returns a newer timestamp and the status is <code>ok<\/code>, copy the file somewhere else. Do not use <code>cat<\/code> as the example above does. The RDB file is binary, so printing it to a terminal gives you garbage and does not back anything up.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">sudo cp \/<span class=\"hljs-keyword\">var<\/span>\/lib\/redis\/dump.rdb \/backup\/redis\/dump-$(date +%F-%H%M).rdb\nredis-check-rdb \/backup\/redis\/dump-*.rdb   <span class=\"hljs-comment\"># verifies the file can be parsed<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> With Redis 6+ ACLs, authenticate as <code>AUTH username password<\/code> (or set <code>--user<\/code>). A plain <code>AUTH password<\/code> logs in as the <code>default<\/code> user only.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Back up a remote Redis with redis-cli &#8211;rdb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>redis-cli<\/code> can pull a fresh RDB snapshot over the network and save it locally. You do not need shell access to the Redis host or to know its data directory. This is often the easiest way to back up a remote or containerised instance.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">export REDISCLI_AUTH=<span class=\"hljs-string\">'mypassword'<\/span>\nredis-cli -h redis.example.internal -p <span class=\"hljs-number\">6379<\/span> --rdb \/backup\/redis\/dump-$(date +%F).rdb\n<span class=\"hljs-comment\"># ... Transfer finished with success.<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Under the hood this uses the replication protocol, so the user needs permission for <code>SYNC<\/code>\/<code>PSYNC<\/code> when ACLs are enabled. Many managed services, such as ElastiCache or Azure Cache for Redis, block this and also restrict <code>CONFIG<\/code>, <code>SAVE<\/code> and <code>BGSAVE<\/code>. On those platforms, use the provider&#039;s own snapshot or export feature.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restore a Redis database from dump.rdb<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The original post stops at the backup. Order matters when you restore. If you copy the file in while Redis is running, Redis may write its in-memory dataset over your file at the next automatic save or at shutdown. Stop Redis first.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Check that <code>appendonly<\/code> is <code>no<\/code> (<code>redis-cli CONFIG GET appendonly<\/code>). If it is <code>yes<\/code>, follow the AOF procedure in the next section instead.<\/li>\n\n\n<li>Stop Redis: <code>sudo systemctl stop redis-server<\/code> (Debian\/Ubuntu) or <code>sudo systemctl stop redis<\/code> (RHEL family).<\/li>\n\n\n<li>Move the current file aside: <code>sudo mv \/var\/lib\/redis\/dump.rdb \/var\/lib\/redis\/dump.rdb.old<\/code>.<\/li>\n\n\n<li>Copy the backup in under the configured <code>dbfilename<\/code>: <code>sudo cp \/backup\/redis\/dump-2026-12-01.rdb \/var\/lib\/redis\/dump.rdb<\/code>.<\/li>\n\n\n<li>Fix ownership and permissions so the Redis user can read it: <code>sudo chown redis:redis \/var\/lib\/redis\/dump.rdb &amp;&amp; sudo chmod 660 \/var\/lib\/redis\/dump.rdb<\/code>.<\/li>\n\n\n<li>Start Redis: <code>sudo systemctl start redis-server<\/code>.<\/li>\n\n\n<li>Verify the data: run <code>redis-cli DBSIZE<\/code> and <code>redis-cli INFO keyspace<\/code>, and look for <code>DB loaded from disk<\/code> in the Redis log (<code>journalctl -u redis-server<\/code> or <code>\/var\/log\/redis\/redis-server.log<\/code>).<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Redis loads the RDB file only at startup. Copying a file into the data directory while Redis is running does nothing until a restart.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Restoring when AOF is enabled<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When <code>appendonly yes<\/code> is set, Redis rebuilds its dataset from the AOF at startup and ignores <code>dump.rdb<\/code>. Restoring only the RDB file therefore seems to do nothing, or brings back an empty database. Load the RDB with AOF off, then switch AOF back on so Redis builds a new AOF from the restored data.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Stop Redis.<\/li>\n\n\n<li>In <code>redis.conf<\/code>, set <code>appendonly no<\/code>.<\/li>\n\n\n<li>Move the old AOF out of the way. Redis 7+ uses an <code>appendonlydir<\/code> directory; older versions use a single <code>appendonly.aof<\/code> file.<\/li>\n\n\n<li>Copy in <code>dump.rdb<\/code>, fix ownership, and start Redis. Check <code>DBSIZE<\/code>.<\/li>\n\n\n<li>Turn AOF back on at runtime: <code>redis-cli CONFIG SET appendonly yes<\/code>. Redis writes a new AOF from the current dataset in the background.<\/li>\n\n\n<li>Wait until <code>redis-cli INFO persistence<\/code> shows <code>aof_rewrite_in_progress:0<\/code>, then set <code>appendonly yes<\/code> in <code>redis.conf<\/code> again (or run <code>CONFIG REWRITE<\/code>) so the setting survives a restart.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Backup and restore in Docker<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the official <code>redis<\/code> image the data directory is <code>\/data<\/code>. Mount it as a volume so snapshots survive when the container is replaced.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Backup<\/span>\ndocker exec redis redis-cli BGSAVE\ndocker exec redis redis-cli INFO persistence | grep rdb_bgsave_in_progress\ndocker cp redis:\/data\/dump.rdb .\/dump-$(date +%F).rdb\n\n<span class=\"hljs-comment\"># Restore (container stopped so nothing overwrites the file)<\/span>\ndocker stop redis\ndocker cp .\/dump<span class=\"hljs-number\">-2026<\/span><span class=\"hljs-number\">-12<\/span><span class=\"hljs-number\">-01.<\/span>rdb redis:\/data\/dump.rdb\ndocker start redis\ndocker exec redis redis-cli DBSIZE<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><code>docker cp<\/code> works on stopped containers. If the file ends up owned by root, run <code>docker run --rm -v &lt;volume&gt;:\/data redis chown redis:redis \/data\/dump.rdb<\/code> before you start the container again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automate daily backups<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The script below takes a snapshot with <code>--rdb<\/code>, checks the file, compresses it and deletes backups older than seven days. Store the password in a root-only environment file, not in the script.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\">#!\/usr\/bin\/env bash<\/span>\n<span class=\"hljs-comment\"># \/usr\/local\/bin\/redis-backup.sh<\/span>\nset -euo pipefail\n\nBACKUP_DIR=\/backup\/redis\nRETENTION_DAYS=<span class=\"hljs-number\">7<\/span>\nFILE=<span class=\"hljs-string\">\"$BACKUP_DIR\/dump-$(date +%F-%H%M).rdb\"<\/span>\n\n: <span class=\"hljs-string\">\"${REDISCLI_AUTH:?REDISCLI_AUTH must be set}\"<\/span>\nexport REDISCLI_AUTH\nmkdir -p <span class=\"hljs-string\">\"$BACKUP_DIR\"<\/span>\n\nredis-cli -h <span class=\"hljs-number\">127.0<\/span><span class=\"hljs-number\">.0<\/span><span class=\"hljs-number\">.1<\/span> -p <span class=\"hljs-number\">6379<\/span> --rdb <span class=\"hljs-string\">\"$FILE\"<\/span>\nredis-check-rdb <span class=\"hljs-string\">\"$FILE\"<\/span> &gt; \/dev\/<span class=\"hljs-keyword\">null<\/span>\ngzip <span class=\"hljs-string\">\"$FILE\"<\/span>\n\nfind <span class=\"hljs-string\">\"$BACKUP_DIR\"<\/span> -name <span class=\"hljs-string\">'dump-*.rdb.gz'<\/span> -mtime +<span class=\"hljs-string\">\"$RETENTION_DAYS\"<\/span> -delete<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># \/etc\/cron.d\/redis-backup  (REDISCLI_AUTH defined in \/etc\/redis-backup.env, chmod 600)<\/span>\n<span class=\"hljs-number\">30<\/span> <span class=\"hljs-number\">2<\/span> * * * root . \/etc\/redis-backup.env &amp;&amp; \/usr\/local\/bin\/redis-backup.sh &gt;&gt; \/<span class=\"hljs-keyword\">var<\/span>\/log\/redis-backup.log <span class=\"hljs-number\">2<\/span>&gt;&amp;<span class=\"hljs-number\">1<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<ul class=\"wp-block-list\">\n<li>Copy backups off the host (object storage or another server). A backup on the same disk does not survive losing that disk.<\/li>\n\n\n<li>Encrypt backups at rest. An RDB file holds all your data in readable form.<\/li>\n\n\n<li>Test restores on a scratch instance regularly. A backup you have never restored is unverified.<\/li>\n\n\n<li>Make sure the host has free memory before a <code>BGSAVE<\/code>. The fork uses copy-on-write, and a busy server can temporarily need much more RAM than the dataset size.<\/li>\n\n\n<li>Restore to the same or a newer Redis version. Older Redis versions refuse RDB files written in a newer format.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Likely cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td>Database is empty after restore<\/td><td>AOF is enabled and was loaded instead of the RDB, or the file name does not match <code>dbfilename<\/code><\/td><td>Follow the AOF procedure; check <code>CONFIG GET dbfilename<\/code><\/td><\/tr><tr><td>Restored data replaced by old data<\/td><td>Redis was running while the file was copied and saved over it at shutdown<\/td><td>Stop Redis before copying the file<\/td><\/tr><tr><td><code>Background save already in progress<\/code><\/td><td>A save (automatic or manual) is already running<\/td><td>Wait for <code>rdb_bgsave_in_progress:0<\/code> and then copy the file<\/td><\/tr><tr><td><code>MISCONF Redis is configured to save RDB snapshots, but it&#039;s currently unable to persist to disk<\/code><\/td><td>Disk full, wrong permissions on <code>dir<\/code>, or the fork failed<\/td><td>Free disk space, <code>chown redis:redis<\/code> the data directory, check memory and <code>vm.overcommit_memory<\/code><\/td><\/tr><tr><td><code>Can&#039;t handle RDB format version<\/code><\/td><td>Backup was made on a newer Redis than the one restoring it<\/td><td>Restore on the same or a newer Redis version<\/td><\/tr><tr><td><code>NOAUTH Authentication required<\/code><\/td><td>No password supplied<\/td><td>Set <code>REDISCLI_AUTH<\/code> or authenticate with <code>AUTH<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between SAVE and BGSAVE in Redis?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>SAVE<\/code> writes the snapshot in the main thread and blocks every client until it finishes. <code>BGSAVE<\/code> forks a child process to write it in the background, so Redis keeps serving requests. Use <code>BGSAVE<\/code> on production servers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where is the Redis dump.rdb file stored?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is stored in the directory returned by <code>CONFIG GET dir<\/code>, under the name returned by <code>CONFIG GET dbfilename<\/code>. Debian and Ubuntu packages typically use <code>\/var\/lib\/redis<\/code>, and the official Docker image uses <code>\/data<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I restore a Redis backup without restarting the server?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Not from an RDB file. Redis reads it only at startup. To limit downtime, start a separate instance from the backup and switch clients over, or make the running server a replica of it with <code>REPLICAOF<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Are the Redis DUMP and RESTORE commands the same as a database backup?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. <code>DUMP<\/code> and <code>RESTORE<\/code> serialise and recreate a single key. They are useful for moving individual keys, but a full database backup uses an RDB snapshot.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Is it safe to copy dump.rdb while Redis is running?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, for a backup. Redis writes snapshots to a temporary file and renames it into place, so the file you copy is always complete. Just make sure no <code>BGSAVE<\/code> is still in progress if you need the latest data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/database\/\">More Databases tutorials<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/database-platform-engineer-role-blueprint-responsibilities-skills-kpis-and-career-path\/\">Database Platform Engineer: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/senior-database-administrator-role-blueprint-responsibilities-skills-kpis-and-career-path\/\">Senior Database Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>To back up Redis, write a fresh RDB snapshot (dump.rdb) and copy it somewhere safe. To restore it, stop Redis, put the snapshot in the data directory&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[10975],"tags":[26281,7197],"class_list":["post-30318","post","type-post","status-publish","format-standard","hentry","category-database","tag-backup-and-restore","tag-redis"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=30318"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30318\/revisions"}],"predecessor-version":[{"id":80680,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/30318\/revisions\/80680"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=30318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=30318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=30318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}