Comment on Backing up IaC
r0ertel@lemmy.world 2 weeks ago
As others have said, a traditional off site backup will work. How do you plan to perform a restore, though? If you need the self hosted source repo, it won’t be available until the infrastructure is stood to creating another circular dependency.
I’m still in the early stages of exploring this, too. My solution is to run a local filesystem git clone
of the “main” repo and execute it with a Taskfile that builds a docker image from which it can execute the ansible infrastructure build. It is somewhat manual but I have performed a full rebuild a few times after some Big Mistakes.
ch8zer@lemmy.ca 2 weeks ago
You pretty much got it. I need a quick way to restore the repo and ideally have git do a self backup. Seems like a cheap VPS may be the way to go
r0ertel@lemmy.world 2 weeks ago
For my own curiosity, how do you perform a build? Is it all done in pipelines, kicked off on change? Do you execute the whole infra build each time you release an update?
ch8zer@lemmy.ca 2 weeks ago
Honestly, I just run it from the CLI myself.
I’ve wasted too much time fighting with CI and automation that when I migrated to forjego I didn’t bother to put it in again.
r0ertel@lemmy.world 2 weeks ago
Same. I have spent way more time troubleshooting a pipeline than it saves. I like the idea of automation but laziness prevails.