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

Export url mappings from LevelDB #16

Closed
obrienben opened this issue Apr 2, 2018 · 1 comment
Closed

Export url mappings from LevelDB #16

obrienben opened this issue Apr 2, 2018 · 1 comment

Comments

@obrienben
Copy link

Is it possible to export the short->unshrtnd url mappings from leveldb behind unshrtn?

I'd like to save a copy of them without having to keep the unshrtn docker image, and also so I can use them in lookups with other short url lists we have.

@edsu edsu closed this as completed in 1524598 Oct 28, 2018
@edsu
Copy link
Member

edsu commented Oct 28, 2018

I'm sorry it took so long to get to this. The new version (v0.0.8) now takes subcommands which allow you to dump and load the database:

% unshrtn dump unshrtndb > dump.jsonl
% unshrtn load unshrtndb < dump.jsonl

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

2 participants