Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dynamodb-backup-restore

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-backup-restore

AWS DynamoDb tool for full, incremental backup and restore

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
256
decreased by-36.63%
Maintainers
1
Weekly downloads
 
Created
Source

#dynamodb-backup-restore

This is tool to back up DynamoDb table to S3 bucket and restore S3 objects to DynamoDb table.

This tool looks like many other but has a great advantage - implemented with classes and ES6.

This tool requires to set all parameters except Restore Time.

##Usage samples

Full backup

$ gulp backup-full --s3bucket s3-bucket --s3prefix s3-prefix --s3region s3-region --dbtable db-name --dbregion db-region

Incremental backup

$ gulp backup-incremental --s3bucket s3-bucket --s3prefix s3-prefix --s3region s3-region --dbtable db-name --dbregion db-region

AWS Lambda

module.exports.handler = (event, context, callback) => {
    let config = {
        S3Bucket: 'STRING_VALUE', /* required */
        S3Region: 'STRING_VALUE', /* required */
        S3Prefix: 'STRING_VALUE', /* required */
    };
    
    let backup = new Backup(config);
    return backup.fromDbStream(event.Records).then(() => {
        callback();
    }).catch(err => {
        callback(err);
    });
}

Restore

$ gulp restore --s3bucket s3-bucket --s3prefix s3-prefix --s3region s3-region --dbtable db-name --dbregion db-region

Keywords

FAQs

Package last updated on 28 Jul 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc