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

[documentation] migration to/from filesystem #34

Open
snakescott opened this issue Aug 6, 2017 · 2 comments
Open

[documentation] migration to/from filesystem #34

snakescott opened this issue Aug 6, 2017 · 2 comments

Comments

@snakescott
Copy link

Moving state out of the system running jupyter and into a DB sounds awesome!

If I have lots of notebooks on disk, is there a clean way to import them into a pgcontents backend? Similarly, if I want to rollback from pgcontents to the file system, is there a clean way to export?

@ssanderson
Copy link
Contributor

ssanderson commented Oct 12, 2017

@snakescott sorry for the long delay in replying to this.

We actually used to have a utility that did basically what you're describing for checkpoints, but I ended up removing it for lack of use. More recently, @nathanwolfe did work in (#30) to add tools in pgcontents.query to produce a generator over all the files in the database, handling decryption and taking min/max timestamps to support resuming if the process crashes. You could build a "sync user to local directory" tool on top of that system relatively straightforwardly.

@dmichalowicz
Copy link
Contributor

Is this still an issue?

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

No branches or pull requests

3 participants