memcached_backup

package module
v0.0.0-...-95660e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 0 Imported by: 0

README

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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VERSION = "0.0.1"

VERSION is the app-global version string, which should be substituted with a real value during build.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL