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

Incremental backup #33

Open
rchen19 opened this issue Sep 17, 2022 · 4 comments
Open

Incremental backup #33

rchen19 opened this issue Sep 17, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@rchen19
Copy link

rchen19 commented Sep 17, 2022

Is your feature request related to a problem? Please describe.
Currently you cannot point output path to an existing directory, and bagoup insist on creating an empty directory and backup everything.

Describe the solution you'd like
Would it be possible to backup incrementally, i.e. find new messages sent and received after the last backup, and add these new ones to an existing backup directory?

Additional context
Just a thought. This may be a bit difficult to implement, it will need either 1) keep an internal database on which messages it has already backed up, or 2) scan the backup files to determine which ones are old, prior to each backup.

@rchen19 rchen19 added the enhancement New feature or request label Sep 17, 2022
@tagatac
Copy link
Owner

tagatac commented Sep 19, 2022

Thanks for the issue.

This could actually be feasible by writing a pointer file containing the timestamp of the last exported message, with 2 caveats:

  1. It would only work for text file backups. The concept of appending wouldn't work well with PDF exports.
  2. This would put a backward-compatibility constraint on bagoup (unless the pointer file also contains the bagoup version, and incremental export is only supported within the same version).

To other users: please upvote or comment if you would use this functionality.

@rchen19
Copy link
Author

rchen19 commented Oct 6, 2022

I actually do not see upvote option here, is it some new feature of GitHub?

@tagatac
Copy link
Owner

tagatac commented Oct 6, 2022

Screenshot 2022-10-06 125725

@rchen19
Copy link
Author

rchen19 commented Oct 6, 2022

Ah I see, emoji reactions 😂

@tagatac tagatac changed the title Increment backup Incremental backup Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants