Honest question. I’ve got automated daily pg_dump backups going to S3 and I check that the files are there, but I’ve never actually tried restoring one on a fresh instance to see if it works.

Feel like this is one of those things where you assume it’s fine until you desperately need it and find out the dumps were corrupted for 3 months.

Anyone have a setup where restores get tested automatically? Or is that overkill for side projects?

  • be_gt@feddit.nu
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    4 days ago

    An untested backup is no backup at all. At least test once or twice per year.

    But I usually do it manually by restoring into a new instance, rather that have it done on a script.