Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

me-io/memcached-util

Open more actions menu

Repository files navigation

Memcached Utility

Tiny memcached utility that allows you to backup and restore memcached cache

Go Report Card GoDoc Blog URL Build Status

Useful for stopping/starting/restarting memcached server without sacrificing any cached data.

Installation

Download and install the relevant binary from the releases page

Usage

Use the below signature to generate or restore the backup

memcached-util [--op <backup|restore>]
               [--filename <path-of-backup-file>]
               [--addr <address-with-port>]

Detail of options are listed below

Option Default Description
--addr 0.0.0.0:11211 Memcached address to connect to
--filename mem_backup.json Path to the file to generate the backup in or to restore from
--op backup or `restore

Examples

Generate the backup and store at the given path

memcached-util --addr "192.168.99.100:11211" --op "backup" --filename "mem_backup.json"
memcached-util --op "backup" --filename "/some/path/mem_backup.json"

Restore the backup from the given path

memcached-util --addr "192.168.99.100:11211" --op "restore" --filename "mem_backup.json"
memcached-util --op "restore" --filename "/some/path/mem_backup.json"

Contributing

Anyone is welcome to contribute, however, if you decide to get involved, please take a moment to review the guidelines:

License

The code is available under the MIT license.

About

Memcached utility to backup and restore the cache

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.