
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
consul-backup-restore
Advanced tools
consul-backup-restore is a way of easily restoring and backing up key value pairs from consul.
It works with Amazon's S3 service or by default locally.
npm install consul-backup-restore
var ConsulBackupRestore = require('consul-backup-restore');
var cbr = new ConsulBackupRestore({host: 'localhost', port:8500});
cbr.backup(
{prefix: 'serviceName', filePath:'path/to/myFile'},
function(err, result) {
if (err) throw err;
console.log(result)
}
)
Callbacks has an error argument and a result argument. The result argument will either be the name of the file, or the s3 data dump.
Options
cbr.restore(
{prefix: 'serviceName', override: true, filePath:'path/to/myFile'},
function(err, result) {
if (err) throw err;
console.log(result)
}
)
Callbacks has an error argument and a result argument. The result will return an array of keys that were backed up. For example a key that already exists in consul will only be returned if the override is set to true.
Options
service1
To run the tests locally you must have a consul instance running. We do this through docker.
docker run -d -p 8500:8500 -p 8600:53 -p 8400:8400 consul agent -dev -client 0.0.0.0 -advertise 127.0.0.1
From then you can run your tests using mocha
FAQs
Library to backup and restore consul key values
The npm package consul-backup-restore receives a total of 21 weekly downloads. As such, consul-backup-restore popularity was classified as not popular.
We found that consul-backup-restore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.