Writing switch backups to allow for rollback after eg. failed upgrades