{"id":13644309,"url":"https://github.com/yannh/redis-dump-go","last_synced_at":"2025-04-05T15:08:58.381Z","repository":{"id":41903686,"uuid":"137633321","full_name":"yannh/redis-dump-go","owner":"yannh","description":"Backup \u0026 Restore your Redis server - FAST","archived":false,"fork":false,"pushed_at":"2024-07-30T22:01:19.000Z","size":288,"stargazers_count":307,"open_issues_count":5,"forks_count":62,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T14:11:08.265Z","etag":null,"topics":["backup","backups","go","redis","redis-dump","redis-server","resp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yannh.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-17T06:14:17.000Z","updated_at":"2025-03-28T07:52:30.000Z","dependencies_parsed_at":"2024-01-14T09:19:48.893Z","dependency_job_id":"9739efa3-06dd-4cd4-8685-2aa094a39829","html_url":"https://github.com/yannh/redis-dump-go","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannh%2Fredis-dump-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannh%2Fredis-dump-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannh%2Fredis-dump-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannh%2Fredis-dump-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannh","download_url":"https://codeload.github.com/yannh/redis-dump-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353746,"owners_count":20925329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","backups","go","redis","redis-dump","redis-server","resp"],"created_at":"2024-08-02T01:02:01.058Z","updated_at":"2025-04-05T15:08:58.358Z","avatar_url":"https://github.com/yannh.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![Build status](https://github.com/yannh/redis-dump-go/workflows/build/badge.svg?branch=master)](https://github.com/yannh/redis-dump-go/actions?query=branch%3Amaster)  [![go report card](https://goreportcard.com/badge/github.com/yannh/redis-dump-go)](https://goreportcard.com/report/github.com/yannh/redis-dump-go)\n\n# Redis-dump-go\n\nDump Redis keys to a file. Similar in spirit to https://www.npmjs.com/package/redis-dump and https://github.com/delano/redis-dump but:\n\n* Will dump keys across **several processes \u0026 connections**\n* Uses SCAN rather than KEYS * for much **reduced memory footprint** with large databases\n* Easy to deploy \u0026 containerize - **single binary**.\n* Generates a [RESP](https://redis.io/topics/protocol) file rather than a JSON or a list of commands. This is **faster to ingest**, and [recommended by Redis](https://redis.io/topics/mass-insert) for mass-inserts.\n\nWarning: like similar tools, Redis-dump-go does NOT provide Point-in-Time backups. Please use [Redis backups methods](https://redis.io/topics/persistence) when possible.\n\n## Features\n\n* Dumps all databases present on the Redis server\n* Keys TTL are preserved by default\n* Configurable Output (Redis commands, RESP)\n* Redis password-authentication\n\n## Installation\n\nDownload the appropriate version for your operating system on [ŧhe release page](https://github.com/yannh/redis-dump-go/releases),\nor use the [Docker image](https://github.com/users/yannh/packages/container/package/redis-dump-go):\n\n```bash\n$ docker run ghcr.io/yannh/redis-dump-go:latest -h\nUsage of /redis-dump-go:\n[...]\n```\n_Bandwidth costs_: Redis-dump-go is hosted on on Github Container Registry which is currently in Beta. During that period,\n[bandwidth is free](https://docs.github.com/en/packages/guides/about-github-container-registry). After that period,\na Github Account might be required / bandwidth costs might be applicable.\n\n## Run\n\n```\n$ ./bin/redis-dump-go -h\nUsage of ./bin/redis-dump-go:\n  -batchSize int\n        HSET/RPUSH/SADD/ZADD only add 'batchSize' items at a time (default 1000)\n  -db uint\n        only dump this database (default: all databases)\n  -filter string\n        Key filter to use (default \"*\")\n  -host string\n        Server host (default \"127.0.0.1\")\n  -n int\n        Parallel workers (default 10)\n  -noscan\n        Use KEYS * instead of SCAN - for Redis \u003c=2.8\n  -output string\n        Output type - can be resp or commands (default \"resp\")\n  -port int\n        Server port (default 6379)\n  -s    Silent mode (disable logging of progress / stats)\n  -ttl\n        Preserve Keys TTL (default true)\n\n$ ./bin/redis-dump-go \u003e dump.resp\nDatabase 0: 9 element dumped\nDatabase 1: 1 element dumped\n```\n\nFor password-protected Redis servers, set the shell variable REDISDUMPGO\\_AUTH:\n\n```\n$ export REDISDUMPGO_AUTH=myRedisPassword\n$ redis-dump-go\n```\n\n## Build\n\nGiven a correctly configured Go environment:\n\n```\n$ go get github.com/yannh/redis-dump-go\n$ cd ${GOPATH}/src/github.com/yannh/redis-dump-go\n$ go test ./...\n$ go install\n```\n\n## Importing the data\n\n```\nredis-cli --pipe \u003c redis-backup.txt\n```\n\n## Release Notes \u0026 Gotchas\n\n * By default, no cleanup is performed before inserting data. When importing the resulting file, hashes, sets and queues will be merged with data already present in the Redis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannh%2Fredis-dump-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannh%2Fredis-dump-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannh%2Fredis-dump-go/lists"}