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 Image Data to a file, Import/Export? #21

Closed
ultimape opened this issue May 6, 2021 · 3 comments
Closed

Backup Image Data to a file, Import/Export? #21

ultimape opened this issue May 6, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@ultimape
Copy link
Collaborator

ultimape commented May 6, 2021

While testing, we ran into a bug and then proceeded to delete accounts locally and in the process lost access to a drawing.

Occurred to me it would be useful to have a save/download/export and load/upload/import feature to allow for backups in case of replication failure and peer loss.

Long term this may be covered by gun implementing IPFS connectivity, but for the time being just having something that can be deposited into a .json would be enough.

I suspect it wouldn't be much different from the bug report feature in how it's implemented in the UI.

@nsreed
Copy link
Owner

nsreed commented May 6, 2021

You're correct. This isn't too far removed from the current bug report JSON, specifically the "graph" key. This key in theory contains all the data necessary to repopulate the graph database for any user and images which have been loaded by your browser. Individual images likewise. Part of the challenge in the long run is that your images may contain external references which haven't been seen by your browser, meaning, there is no guarantee that what you download will be a "full" copy of your data, though it would represent what you see in the editor.

If I understand correctly, the gun/ipfs bridge was implemented, but its use is discouraged. I need to refresh my understanding of this though.

@nsreed nsreed added the enhancement New feature or request label May 7, 2021
@nsreed
Copy link
Owner

nsreed commented Dec 4, 2021

This feature is tentatively implemented in #33, now merged to master. It only handles paper.js format JSON imports, but as a MVP, is this acceptable?

@nsreed
Copy link
Owner

nsreed commented Dec 4, 2021

Closing the issue. Enhancement requests can be new issues.

@nsreed nsreed closed this as completed Dec 4, 2021
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