Much simpler than my solution. I’ll look into this. Thank you!
Comment on Backups: Am I doing this right?
supersheep@lemmy.world 3 days agoIn theory the database can end up in an invalid state when you leave the database container running. What I do for most containers is to temporarily stop them, backup the Docker volume and then restart the container.
RadDevon@lemmy.zip 2 days ago
scrubbles@poptalk.scrubbles.tech 2 days ago
Seconded, and great callout @RadDevon@lemmy.zip , yes part of my script was to stop the container gracefully, tar it, start it again, and then copy the tar somewhere. it “should” be fine, in a production environment where you could have zero downtime I would take a different approach, but we’re selfhosters. Just schedule it for 2am or something.
RadDevon@lemmy.zip 2 days ago
Is your script something you can share? I’d love to see your approach. I can definitely live with a few minutes of down time in the early morning.