mkaczanowski / pastebin

Simple, fast, standalone pastebin service
MIT License
155 stars 27 forks source link

Is there a way to view previously created pastes? #25

Closed lenaxia closed 3 years ago

lenaxia commented 3 years ago

Specifically looking to manage old pastes to prevent a buildup of data.

Or do I need to wipe my --db folder in order to clear old pastes?

mkaczanowski commented 3 years ago

If a pastebin has an expiry time, then it'll be automatically pruned.

Is there a way to view previously created pastes

Pastes are stored in the rocks db (--db) and there is some ldb cli available here: https://github.com/facebook/rocksdb/tree/master/tools you can use it to navigate through database