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

Backup the todo.txt file on every modification #10

Open
jmanuel1 opened this issue Mar 9, 2021 · 1 comment
Open

Backup the todo.txt file on every modification #10

jmanuel1 opened this issue Mar 9, 2021 · 1 comment
Labels
enhancement New feature or request low urgency

Comments

@jmanuel1
Copy link
Owner

jmanuel1 commented Mar 9, 2021

At present, the file as backed up only when the plugin is activated. To protect against data loss due to file corruption, the todo.txt should be copied regularly instead. I propose copying after every modification.

Also, maybe I should look into a better way to asynchronously read and write from a file safely. If I can do 'the right thing', then I might start actually using the plugin.

This issue refers to the following TODO:

// TODO: Back up on every modification

@jmanuel1 jmanuel1 added the enhancement New feature or request label Mar 9, 2021
@jmanuel1
Copy link
Owner Author

Google Drive, where I store my todo.txt, keeps previous versions of the file for up to 30 days (unless I choose to keep a revision forever). I think this is good enough for me, so I will deprioritize this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low urgency
Projects
None yet
Development

No branches or pull requests

1 participant