Backup and restore a couchdb npm registry to s3.
You'll need a JSON config file that looks something like this:
{
"AWS": {
"AccessKeyID": "XXXXXXXXXXXXXXXXXXXX",
"SecretAccessKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"S3BucketName": "your-bucket-name"
},
"Couch": {
"Username": "jrandom",
"Password": "secret",
"URL": "http://localhost:5984/"
},
"DaemonPause": "60s",
"Log": {
"FilePath": "/var/log/helios.log",
"Level": "info"
}
}
Where the AWS section corresponds to a keypair and S3 bucket, and the Couch section corresponds to an admin user. Most reasonable durations can be used for DaemonPause
(e.g. 15s, 5m, 1h). The Log
section is only needed if you're running the daemon
command.
helios --conf ~/helios.json --sunrise
helios --conf ~/helios.json --sunset
helios --conf ~/helios.json --daemon