Socket
Socket
Sign inDemoInstall

dynamodb-backup-restore

Package Overview
Dependencies
20
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dynamodb-backup-restore

AWS DynamoDb tool for full, incremental backup and restore


Version published
Maintainers
1
Install size
2.58 MB
Created

Readme

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

Last updated on 29 Jul 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc