TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Recovering a PostgreSQL database after a hard drive failure

107 pointsby d4aover 3 years ago

4 comments

csdvrxover 3 years ago
If you are not as lucky and need to attack the underlying files to recover as much as you can in CSV form, try my small tool: <a href="https:&#x2F;&#x2F;github.com&#x2F;csdvrx&#x2F;pg_csdvrx" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;csdvrx&#x2F;pg_csdvrx</a><p>Or just watch the demo on <a href="https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;csdvrx&#x2F;pg_csdvrx&#x2F;master&#x2F;pg_csdvrx.gif" rel="nofollow">https:&#x2F;&#x2F;raw.githubusercontent.com&#x2F;csdvrx&#x2F;pg_csdvrx&#x2F;master&#x2F;pg...</a> where I corrupt a table to show how it works
评论 #29749767 未加载
评论 #29748931 未加载
frogger8over 3 years ago
And for next time. <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;AtulKsol&#x2F;520f5d0c9a313edea7254701f6db8966" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;AtulKsol&#x2F;520f5d0c9a313edea7254701f6d...</a>
评论 #29765052 未加载
评论 #29753641 未加载
评论 #29750503 未加载
forintiover 3 years ago
It&#x27;s quite easy to have a copy of a Postgresql instance running on another host with streaming replication (always up to date).<p>This and backups will avoid great sorrows.
评论 #29748121 未加载
评论 #29749755 未加载
评论 #29748823 未加载
ghotliover 3 years ago
Hope this helps someone out there.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;wal-e&#x2F;wal-e" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;wal-e&#x2F;wal-e</a><p>^^ stream your write ahead logs to s3 + all the other bells and whistles you&#x27;d expect<p>Standard issue reminder, test your backups or they&#x27;re not backups at all.