hoppe's avatar
hoppe 1 year ago
I’ve built a service that backs up nostr events. More precisely, it synchronizes between relays. There have probably been similar tools before, but what sets this apart is that it strictly synchronizes based on the outbox model. Well, maybe something like this already exists too, but who cares? The world is full of similar programs anyway. The usage is simple: just enter your npub and press the sync button below. From that moment, it starts going back in time until there are no more events to fetch, syncing the relays as it goes. It queries notes in chronological order and republishes them only to the relays where they’re missing. It syncs the posts I’ve written only to my write relays, and the posts I need to read only to my read relays. This whole idea was inspired by this post I deeply resonated with: View article → Because of that, the sync feature is not provided to users who have registered too many relays. This should be helpful when you’ve changed your relay configuration and want to back up your past notes to newly added relays.

Replies (5)

hoppe's avatar
hoppe 1 year ago
You're talking about notes that, for whatever reason, don't appear on any of the user's current outbox relay list, right? Yeah, those definitely slip through. I actually thought about trying to catch those too, but decided it’d be better to start with a simpler version first. Along with what you mentioned below, that’s definitely something I should try implementing next. If that works, it might as well be called Nostr archaeology.
hoppe's avatar
hoppe 1 year ago
If it's more than five, yeah. But if you run the code locally yourself, you can bypass that limitation.
hoppe2's avatar
hoppe2 11 months ago
I lost the private key for @hoppe and it's impossible to recover it, so I created a new account. I hope you all manage your secret keys well