THIS IS A POST IN PRAISE OF SNAPSHOTS.

My PeerTube upgrade was a horror show: lost server connection during the upgrade and then PeerTube was automatically removed from my YunoHost server... the routine backup by YunoHost of PeerTube didn't restore... in short: bad, very bad outcome.

I hyperventilated for a few minutes and then... hit "Restore" on the VPS snapshot I had captured before the maintenance operation and... everything went back to normal.

Heart still beating a little fast but I am in AWE of the powers of SNAPSHOTS, ouf.

#sysadmin #MySoCalledSudoLife

@elena 😱 thank goodness the snapshot worked!

Do you perform the upgrade from the command line? If so, you might like to have a look at a terminal multiplexer like tmux (https://github.com/tmux/tmux/wiki and should be available as a package in all Linux distros).

You just SSH to your VPS as normal, but then start tmux. If you lose connection, your terminal session continues to run on the VPS uninterrupted, and you can reconnect again as if nothing happened.

Home

tmux source code. Contribute to tmux/tmux development by creating an account on GitHub.

GitHub
@teapot_ben yeah next time I attempt a PeerTube app upgrade it will be from Terminal, ouf 😅​

@elena hopefully you will (eventually) be able to look back at this as a valuable lesson in becoming an even better sysadmin.

I think every sysadmin you meet will be able to recount numerous horror stories of their own, either close misses or total disasters. Unfortunately it is an important part of the learning process, but never a pleasant experience at the time.

@teapot_ben for real!

and very appropriate as I've been writing a blog post about YunoHost maintenance. More experience to draw from I suppose 😅​