Giter Club home page Giter Club logo

dynamo-incremental-restore's People

Contributors

abhayachauhan avatar andrewhore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dynamo-incremental-restore's Issues

Directory key is not filtered out from versionList

The object versions retrieved from s3.listObjectVersions (buildS3VersionList.js) will contain a directory key as well. For example, if you have put incremental object records in:

backup/

then a object version of backup directory itself will also be pass to s3ToDynamo.js:

Therefore, the following exception will be throw:

exception in /Users/han/repo/dynamo-incremental-restore/lib/s3ToDynamo.js:40
SyntaxError: Unexpected end of input

 38                 console.timeEnd('RFS3' + version.Key);
 39                 try {
>40                     deferred.resolve([version, JSON.parse(data)]);
 41                 } catch (e) {
 42                     deferred.reject('Failed to retrieve file from S3 - Params: ' + JSON.stringify(s3Params));

Because the data will be empty so it will be an invalid JSON file. Just wondering is this issue because my prefix setting? I have the following map pass to logbuildList function.


{
    Prefix: "backup/registrations/",
    //Adjust the InstID as needed. OR you can not provide an Inst ID and you get all the forms.
    // e.g. Formsmith/Formsmith.Green.FormData/543
    DestinationTableName: "registrations" ,
    //The table to backup. 1 table at a time e.g. Formsmith.Green.FormData
    Bucket: "blanco-han-test",
    //The bucket where the data is stored. e.g. pageup-dynamo-backup
    restoreToPointInTime: new Date('2017-01-12T18:34:34.128Z'),
    //the last point in time you want to update a version
    //restoreToPointInTime: new Date('2016-11-14T23:50:32.000Z'),
}

If so I am curious how do your guys set up the incremental backup so that the directory will never be included.

BTW, I also made some fix for the signature version 4 signing which will follow later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.