Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add trailing line breaks to incremental backups #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dunedan
Copy link

@Dunedan Dunedan commented Jul 5, 2017

Up to now incremental backups didn't contain a trailing line break at
the end of the file. When aggregating incremental records into a
snapshot dynamodb-replicator would add them.
This commit changes that to include trailing line breaks in the
incremental backups and only add them during snapshotting when they're
not present.
The motivation for this change is that it makes it significantly easier
to process incremental backups with tools such as the awscli if they
already contain the trailing line break.

Up to now incremental backups didn't contain a trailing line break at
the end of the file. When aggregating incremental records into a
snapshot `dynamodb-replicator` would add them.
This commit changes that to include trailing line breaks in the
incremental backups and only add them during snapshotting when they're
not present.
The motivation for this change is that it makes it significantly easier
to process incremental backups with tools such as the `awscli` if they
already contain the trailing line break.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant