Sorry for adding to the massive pile of backup-related question, but I could not figure out how to manage backups from existing answers…
I want to backup my VPS setup (think container-defining files, its volumes, and etc configs), but am unsure where to put it. Does keeping these in the VPS itself make sense? If so, how do I create and manage the backup?
Also, I would need a remote copy - what is the good location for this? I wish I could copy to my laptop, but obviously I cannot do that automatically. Should I pay money for a backup? I want to avoid paying lots of money just for backups. Thanks in advance!
I keep my server backups on a dedicated backup server.
Better question: Have you looked into infrastructure as code? (IaaC) you can define everything in a Git repo and then create everything in a repeatable way.
Ansible if you want to do it the right way.
Or keep all of your configs in one tree and use syncthing on it If you want to phone it in. Turn on versioning call it a night.
Thanks! I gotta get my hands on Ansible, was reluctant as I’ve heard it can be complicated. Should see myself!
Ansible’s not all that bad. The alternatives are far more complicated.
Jeff geerling has a bunch of videos on ansible 101.
I’d get familiar with deploying these with some infrastructure-as-code tools, and keep a git repo. Ansible is pretty easy to get started with.
Git might be over engineered for this purpose. Maybe SVN?
You joking?
No. Git is inefficient for small numbers of files. Just do a “find | wc” and/or a “du -hs” in your repository folder. SVN exists for a reason.
If you haven’t played with Pulumi (for configuring cloud services) and Ansible (for local services, shell commands, apt installs etc) you may enjoy them as a way to capture / re-apply configuration.