I'd like to buy two identical devices (eg. latest Pixel) and set one up to mirror the other - so if I accidentally drop one down a volcano I can grab the other and keep on rolling.
I want to keep everything on my own infrastructure, without relying on Google backup or the like. Sync needn't be realtime, nightly is fine. The devices should be kept as similar as possible - settings, apps, data etc. I'll only use one at a time (one "master"). In a perfect world my service provider, appstore platform, app publishers, etc. wouldn't be able to tell the difference (although I realize that might be asking too much). I don't mind using an alternate flavour of Android if needed eg. LineageOS, GrapheneOS, etc.
Has anyone accomplished this and gotten it working smoothly in practice? Any tooling you can recommend to help?
Any application that stores any data in the Secure Element of the phone is, by design, not capable of being backed up, even with root. Examples include various bank apps that serve as 2-factor authenticators.
Without that, one of the possible solutions is to use NeoBackup on a rooted phone so it backs up everything daily to some external server on your infrastructure. It can be, for example, a NextCloud server.