You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Sandstorm-dev
I was just thinking about how I've gotten the general (not Sandstorm related) advice to not back up postgres data by the files directly. Instead I should use a database dump tool, because this safely prevents race conditions (half-written records, etc). (Though, I would think that shutting down postgres should make copying files sufficiently safe as well.)
This got me thinking: How do Sandstorm backups work? Postgres, or really anything, could be in the middle of writing something when the user asks for a backup. Is this accounted for during backups? I would think one way of being safe would be to shut down the grain first whenever a backup is requested.
Ian Denhardt
unread,
Jan 18, 2020, 12:10:02 AM1/18/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Dan Krol, Sandstorm-dev
Afaik we don't handle this at all right now; there's absolutely a risk
of database corruption due to race conditions. Shutting down the grain
should work, though we don't do that currently.
I opened an issue; I'd been aware of this but it looks like we didn't
have a ticket for it: