I’ve had this long-standing issue with backups. It’s deadly boring to set up and maintain, so I don’t do any. Until today!
Today I moved the sources for my Octopress blag to GitHub, which also prompted me to set up a mirror on GitHub Pages. As usual, reading up on the subject and muster enough motivation took me about three months, whereas the actual work took about 4h.
I now have a concoction of mixed remotes, multiple branches and some Ruby magic to administer it all with! Here are some links I used to get where I am:
With some added
apt-get intall ruby ruby-bundler magic in Ubuntu
everything started to look normal – now I could even do
before deploying! Only a minor problem I had before getting everything
working was this:
Turns out I had to install nodejs as well, dunno why.
sudo apt install nodejs
Since I wanted a mirrored setup I chose to have Octopress setup default to deploy to GitHub Pages. Then I simply rsync the whole shebang to my own server.