Mário Nogueira

Life without Google and Apple: a self-hosted phone ecosystem, and its price

My phone backs up its photos, syncs contacts and calendar, and carries my passwords, and none of it touches Google or Apple. It all runs on a laptop, a Raspberry Pi and a de-Googled phone that I own and run myself. It works. It also took weeks to build, and it can break in more ways than an iCloud account can.

This article is about both halves of that sentence.

Why bother

Most people get four things from their phone's vendor without thinking about it: photos backed up to the cloud, contacts and calendar on every device, passwords that follow them, and a restore when the phone dies. Google and Apple do this well. The price is that they hold the data, on their terms, readable by them in most cases.

I wanted the same four things under a few rules of my own:

The last rule is the one that fights the other three, as you will see.

How the pieces fit

Three devices share the work. The phone creates the data, a Raspberry Pi at home is the always-on meeting point, and my laptop keeps the master copy. A WireGuard VPN ties them together, and it is the only port my home router forwards, so nothing else is reachable from the internet.

How the pieces fit: the phone syncs with a Raspberry Pi hub over WireGuard, the laptop pulls everything from the Pi and keeps the archive, and three encrypted backup copies hang off the laptop

The laptop never accepts a connection; it always reaches out to the Pi. That is why the Pi exists: the phone and the laptop never need to be online at the same time.

Photos: instead of Google Photos or iCloud

A photo I take reaches the Raspberry Pi within a minute and my laptop within half an hour. From there it is in every backup.

The routine is simple: I move the photos I want to keep from the synced folder into my photo archive, then delete them on the phone to free space. The archive is ordinary folders on disk, browsed with ordinary tools.

Two small details made a difference. Android does not delete a photo at once; it renames it to a hidden "trashed" file for 30 days, and photos still being saved are "pending" files. Two ignore patterns keep both out of the sync. And Syncthing writes a photo under a temporary name while it arrives, so the copy script skips those, or a half-received photo would land in the archive.

What I gave up: face search, maps, shared albums and the "memories" reel. I don't miss them much. What I gained: every original file, at full quality, in a folder I own.

Contacts and calendar: instead of Google or iCloud accounts

Contacts and events sync both ways between the phone and the Pi, using the same open standards Google and Apple speak underneath: CardDAV and CalDAV.

Radicale only answers through the VPN. From the internet it does not exist.

I moved my calendar here from Proton a month ago. It is the part of the system I think about least, which is the best thing I can say about it. The one real limitation: sharing a calendar with someone outside my own devices is awkward. For a household that lives inside Google Calendar, this would be the hardest part to give up.

Passwords: instead of Google Password Manager or iCloud Keychain

One encrypted KeePass vault holds every password, recovery code and backup key I have. It is open on the laptop and the phone, and an edit on either reaches the other within about 15 minutes.

The hard part of syncing a password vault is not the copying. It is two devices editing at once. A sync tool cannot merge two encrypted files, so it has to pick one and set the other aside. My setup always lets the laptop win and keeps the phone's version next to it as a conflict file; KeePassXC can merge the two (Database → Merge from database). Before that, both apps are set to avoid the situation: KeePassXC reloads the file when it changes on disk and saves after every edit, and KeePassDX locks itself quickly and warns when the file changed underneath it.

Trade-off I accepted: the Pi holds a copy of the vault on an unencrypted disk. The file itself is still encrypted, so someone who steals the Pi can only try to guess my passphrase offline. Syncthing has a mode that would hide the file from the Pi entirely, but it is marked beta and would have meant running Syncthing on the laptop too. I chose fewer moving parts.

The vault also holds the TOTP seeds for two-factor logins, so the same apps show the codes: KeePassDX on the phone, KeePassXC on the laptop. No separate authenticator app.

What keeps it alive: backups and a status bar

Once the phone's data reaches the laptop, it is protected the same way as everything else I own: three copies, two cloud providers, two different tools, one offline disk.

Copy Where Tool History
Backup OVH Object Storage restic, encrypted daily, weekly, monthly and yearly snapshots
Mirror Backblaze B2 rclone, encrypted hourly, previous file versions only
Offline external encrypted drive, at home rsync, by hand none

No provider can read any of it, and neither a company nor a program can take everything with it.

The second half is knowing that it works. A silent failure is the real enemy: a sync that stopped three weeks ago looks exactly like one that runs fine. So both machines run a small healthcheck framework I wrote in plain POSIX shell, every two minutes from cron. Each check prints one line and an exit code: backups recent, firewall loaded, time correct, updates pending, VPN peers present, the phone seen by Syncthing recently, the photo copy and the vault sync finished cleanly, no unmerged password conflict. The result shows in my desktop's status bar as OK, WARN or NOK for each machine, with the names of whatever is failing. A missing or stale result also shows as NOK, so a dead monitor never looks healthy.

The price: complexity, and more ways to fail

Google and Apple hide one fact: syncing is hard, and they pay whole teams to make it look easy. Doing it yourself means that work becomes yours.

Count the parts. To replace four features, I run a VPN server, dynamic DNS for my home address, Syncthing on two devices, Radicale, two KeePass apps, rclone bisync, two copy scripts on timers, three backup jobs, and a monitoring framework. Each is reliable on its own. But every part is one more thing that can stop, and the chances add up: the more links in a chain, the more likely one of them is broken on any given day.

These are not hypothetical. All of them happened while I built this:

What broke Why How I found out
The healthcheck called a working sync broken Daylight-saving time ended, and a timestamp's format changed Red status bar, the morning the clocks went back
The time check raised false alarms It asked one public NTP server, which sometimes didn't answer Intermittent red; fixed by asking three
The vault sync refused to write Syncthing on the Pi ran as its own user and owned the folder "Permission denied" on the first run
rclone refused to connect to the Pi It asked for a different type of SSH host key than the one on record "key mismatch"; fixed with one setting
The phone vanished from monitoring I reinstalled the phone, and it came back with a new Syncthing identity The check still looked for the old one
The home address could change under the VPN No fixed IP at home; WireGuard resolves a name only once Caught in design; a script now re-resolves it

None of these lost data, because the archive and the backups sit behind the syncs. But each needed someone who could read a log, an SSH error or a shell script. That someone is me, and only me.

The less visible costs:

Is it worth it?

For me, today, yes, with my eyes open. The data is mine, in open formats, readable without any account, and no provider can lock me out of it. That was the goal, and it holds.

But I would not recommend this to everyone. It suits someone who already runs Linux, is comfortable in a terminal, and treats the upkeep as part of the hobby. For anyone else, the honest advice is a middle path: keep a privacy-respecting phone, use a big provider only as transport, and export everything to your own disk on a schedule. You lose some sovereignty and gain a lot of reliability.

The complexity worries me enough that I keep a written reality check. Most of it comes from choices I made, not from any one tool, and I periodically ask which parts I could drop. A few rules keep it survivable:

Leaving Google and Apple is possible. Just know that you are not removing complexity; you are moving it from their data centre to your desk.

The exit door: back to Apple

If this system ever becomes more burden than freedom, or a risk to the data it is meant to protect, I have a way back, and it is already written down. The trigger is not inconvenience. It is the day I no longer trust myself to rebuild it after a failure, because a recovery I cannot confidently run is itself a risk to the data.

Going back would not mean handing my archive to Apple. The rule would stay the same: the provider is transport, my disk is the archive.

The cost is real. iCloud contacts and calendars are not end-to-end encrypted even with Advanced Data Protection, so Apple could read them. The operating system is closed, and I would be trusting Apple's track record instead of reading the code. In return, the laptop's recovery shrinks to a sign-in and a package list, the Raspberry Pi and the VPN go away, and keeping the phone in sync becomes someone else's job.

Knowing exactly how I would walk through that door is part of what makes staying on this side of it a calm choice rather than a trap.