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 of Mastodon files #298

Open
stefanhahmann opened this issue Mar 14, 2024 · 4 comments
Open

Backup of Mastodon files #298

stefanhahmann opened this issue Mar 14, 2024 · 4 comments

Comments

@stefanhahmann
Copy link
Collaborator

stefanhahmann commented Mar 14, 2024

User Story

A user of Mastodon recently reported that his *.mastodon file was corrupted after/during a crash of Fiji/Mastodon that perhaps was related to #295. It is not exactly clear how *.mastodon could get corrupted and currently no reproducible workflow exists that would create such a corrupt file. However, the result for the user is annoying, since if no other backup strategy existed potentially many hours of tracking may be lost.

Potential solution 1

  • Save the mastodon project automatically every n minutes
    • Default of n could be 5
    • n could be set via the preference menu by the user
  • The autosave would generate a projectname.backup.mastodon, after the project has been saved at least once as projectname.mastodon

Related to #310

@tinevez
Copy link
Contributor

tinevez commented Jun 7, 2024

I like both ideas.
Can you benchmark on your laptop how long saving a large mastodon file takes?

@stefanhahmann
Copy link
Collaborator Author

Can you benchmark on your laptop how long saving a large mastodon file takes?

On my machine I can produce saving times ranging from ~0,2s to ~2s (depending on project size, attributes, etc.).

@tinevez
Copy link
Contributor

tinevez commented Jun 7, 2024

so it would not create big issues for the user experience.

@stefanhahmann
Copy link
Collaborator Author

so it would not create big issues for the user experience.

No, should not be too bad at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants