Skip to content(if available)orjump to list(if available)

Ask HN: How do you backup your Android?

Ask HN: How do you backup your Android?

226 comments

·January 9, 2025

How do you backup your Android?

alyandon

The only data I care about on the phone already gets backed up by Google and is then exported regularly via Google Takeout. I don't live on my phone so I tend not to generate much of any value on it other than random pictures of things.

Prior to Google automatically backing up everything, I used Titanium Backup.

anotherevan

Just to note, it seems Titanium Backup is no longer maintained (last Play store update in 2019) and definitely does not work on more recent versions of Android.

I've found Swift Backup pretty much fills the same role at TB.

Semaphor

NeoBackup on FDroid is what I used before grapheneOS (where I'm not rooted)

hiatus

Titanium backup requires root to do anything useful at this point, since apps can set a flag to allow backup of their data or not.

datavirtue

I didn't know about Google Takeout despite having searched for a way to get my photos out years ago. Blows me away.

blactuary

The problem with Takeout is it removes the metadata from your photos. Google wants you locked in to Google Photos. Years ago they also removed the ability to sync with Google Drive, so the only way to get your photos out without losing metadata is to download them directly from photos.google.com, 50 at a time

rossjudson

AFAIK Takeout + Photos returns the original image file exactly as it originally existed, EXIF intact. Any additional metadata you have added manually is placed in a JSON file with the same name, adjacent to the image file.

It sounds like you want Photos to somehow merge that added metadata back into the image files, altering them. I'm quite confident that there would be an equal number of people complaining about changing their originals, if photos did that.

karteum

Beware when relying on Google Takeout for e-mail backup if you have old e-mails in other encodings than utf-8 : it permanently breaks some characters, which are replaced by 0xEFBFBD (that issue does not occur when doing backup with IMAP or GMVault)

ur-whale

> The only data I care about on the phone already gets backed up by Google and is then exported regularly via Google Takeout.

Are you using Google Authenticator?

If so, how do you backup your secrets?

ascar

It has an export function that you can scan from an old phone. And I kept the setup keys in my keepass database.

On top of that now Google backs those up for you too.

bdavbdav

Plenty of TOTP apps that sync (including google)

OJFord

It does do that similarly to Authy now doesn't it? I saw a thread here recently with people arguing it broke MFA to do so.

alyandon

I use a self-hosted Bitwarden instance for that kind of stuff and before that I used Aegis + Synchthing.

radeeyate

Google already automatically backs up secrets to your Google Account

ThePowerOfFuet

What could possibly go wrong.

snapplebobapple

aegis plus syngcthing fork works well

pynappo

aegis authenticator uses google's android backup system.

seszett

My device is rooted and I use NeoBackup to backup apps with all their data (including what the app developer marked as "should not be backed up", often data that they would like you to backup on their own cloud instead).

Syncthing synchronises these backups to my home server automatically, as well as the phone's user data (photos, mainly).

The photos are additionally sent to Photoprism.

I avoid Google's cloud as much as I can.

mgbmtl

My device is not rooted, but I use Syncthing as well. I mainly sync my photos and my TOTP tokens (Aegis). The rest I don't care about.

I used Nextcloud sync in the past, but found it unreliable.

Azerty9999

Synchthing on Android is End of life, alas https://forum.syncthing.net/t/discontinuing-syncthing-androi...

drio

Yes, very sad.

Two alternatives exist:

1. Syncthing-Fork (https://github.com/Catfriend1/syncthing-android) - Works just like the official app. Install from F-Droid or GitHub. Single developer but active.

2. Syncthing in Termux - Run the actual Syncthing program in Termux. Takes more setup but uses the standard version.

The fork is easier to use, while Termux needs more setup but gives you the standard Syncthing experience.

graemep

I did not know that.

Its a definitely problem for me.

zx8080

> I used Nextcloud sync in the past, but found it unreliable.

What was wrong about nextcloud sync? I'm just about to set it up for myself.

mgbmtl

The sync would stall and I'd have to go retry, or it would fail with no error clear message. In the end, I had no idea what had really synched correctly. The app was unhappy if I deleted a photo too quickly.

With Syncthing, I sync to a directory that my Nextcloud user can access (a read-only mount), so I can still easily share photos using Nextcloud, for example.

(although it's unfortunate that the Android syncthing app is being retired. h/t for the heads up and the recommended alternatives)

beagle3

Would you trust a restore of those “do not back up” data you have a copy of? Or is this for inspection only?

seszett

I just restored my backups a few weeks ago when I bought a new phone. It doesn't work for all apps (I knew it, it's far from the first time I do that) but I am satisfied with the results.

It does help sometimes for retrieving some data manually by digging through the backup files (used it recently for retrieving all invoices from a service that were otherwise only available one by one through a painfully complicated process).

beagle3

My use case would be to get my WhatsApp database…. Anyone knows if it restores properly?

(Useful even if not … WhatsApp search is abysmal, the db file is much more useful)

sriacha

also use NeoBackup, and it works pretty well for the most part.

esperent

Since your phone is rooted, how do you manage banking apps and other things that don't like working on a rooted device? How much work is involved in getting those to work?

Wicher

I'm running LineageOS, rooted, with MicroG' Safetynet emulation (of sorts?). So a build signed with userdebug keys.

Some banking apps just work - two with warning on first launch, and one just doesn't care at all.

Two refuse to run and I have an old unrooted phone for them. Resulting in me being a good customer of those three banks that are not fussy.

So try and see, perhaps things just work!

seszett

For my part I use Magisk, and a specific module for one bank.

The French and Belgian identity apps (France Identité and itsme) don't work though. When I really need them (which is rare) I have to use an old phone that's not rooted.

kQq9oHeAz6wLLS

I don't use banking apps, but you usually can get around this with Magisk's DenyList.

ur-whale

> My device is rooted

A problem in and of itself: brittle when upgrading, won't work with you banking app, etc...

grakker

Just install a couple Magisk modules and your banking app should work fine. At least mine does.

exabrial

Sorry for a dumb question, what are those

seszett

It's true that it makes some things more complicated, but it's a trade-off that I'm willing to make for the convenience and security of hosting my own backups.

ethagnawl

Banking web apps usually, mostly work just fine. The one exception is depositing checks. It's pretty rare that I need to do that these days, though.

Semaphor

I'm not rooted anymore, but my banking app worked fine when I was. Only the health insurance app (TK) had issues

elorm

Play Integrity Fix.

troyvit

I don't have root on my android and I try to avoid using any FAANG's infrastructure. A few weeks ago I bricked my phone and lost a bunch of data because I only backed up my photos. More on that in a sec, but the big thing I learned is how much stuff on my phone I didn't miss once it was gone and how much I did miss.

App backup? who cares? This was a chance for me to see what's new on F-Droid and it's been great (lookin' at you keyboard.futo.org).

I back up my photos using termux, rsync, and rsync.net. This model seems pretty solid. I should extend it to app data, but I don't have an automated way to back up app data yet. It's just a thing I have to do when I think of it, which is a recipe for disaster.

I'm taking syncthing out of the picture. I was using it to share markdown, html and some graphics between devices and my phone, but I regularly end up diffing .conflict files. I hope to get better behavior from Nextcloud.

Still, I'm the same happy guy I was before December 30 so I think a few manual app data back-ups, back-ups for non-photo content to Nextcloud so I can share it between devices more easily, and the same old rsync stuff for photos should work great.

rsync

"I back up my photos using termux, rsync, and rsync.net. This model seems pretty solid."

This is a common workflow.

In addition to termux/rsync we do see a number of people using syncopoli.

FWIW, my personal phone is an iphone and I use the excellent 'iexplorer' to browse the phone as if it were a filesystem.

fullstick

Can you share resources on how to backup through termux? I hadn't thought of that.

troyvit

I wrote a how-to!

https://troyvit.net/2023/01/backing-up-android-to-rsync-net/

It has one error. termux-job-scheduler isn't a separate install.

GoblinSlayer

I just did tar / | netcat

snapplebobapple

try flickboard. once it stops melting your brain it is awesome

udev4096

Stop using F-droid. It is insecure and shouldn't be the primary way of installing apps. Stick to Aurora Store or Play Store

npteljes

I read your sources, and one, as a user, I'll let these people sort out their drama among themselves, two, the security issues of the apps that are downloaded I think are way higher potentially than the ones in F-Droid in itself. With these considerations, F-droid is fine as a way of installing apps. Just as fine as any other technically imperfect service, business, or product that we use daily. In fact, I consider it higher than average in quality.

vroomik

Could you elaborate on that? Do you mean bigger possibility of apps containg malware or what?

udev4096

https://privsec.dev/posts/android/f-droid-security-issues/, the recent findings of bypass of certificate pinning [0], wireguard creator doesn't trust f-droid himself [1], continued harmful attacks to GrapheneOS devs [2] and a few more points regarding their build infra using a deprecated debian release.

[0] https://www.openwall.com/lists/oss-security/2024/04/08/8

[1] https://gitlab.com/fdroid/fdroiddata/-/issues/3110#note_1613...

[2] https://gitlab.com/ironfox-oss/IronFox/-/issues/7#note_22877...

Timshel

The handling of the project appears quite troubling, the whole board resigned last year: https://gitlab.com/fdroid/admin/-/issues/447

orbital-decay

Why is it insecure?

solardev

I just let Google handle it with the built in backup: https://support.google.com/googleone/answer/9149304?hl=en&co...

sunaookami

This never once worked for me with app data. I always have to set up apps from scratch.

Carbon1603

I just went from Pixel to Motorola and this has worked surprisingly well. Even for apps that I install manually.

That said, if I don't use the old phone to pull "the data" Google will not transfer more important things (Wi-Fis), settings etc.

solardev

What is app data? I guess maybe everything I use is already in the cloud anyway, so I never noticed that?

kwanbix

Whenever I switch android phones, I need to setup each app from scratch, unless is a google app.

null

[deleted]

hollow-moe

Using the LineageOS built-in backup tool : Seedvault and upload it to my nextcloud server. Didn't have to use it to restore yet so no real idea how good the restoration is. I also have automatic pictures/video upload to nextcloud and contact/agenda sync with DAVx5.

bestouff

SeedVault is a trainwreck. Backups sometimes fail, restores very often fail. It's time this thing gets a rewrite.

udev4096

Then it's not a backup. Always test your restoration properly before calling it a day

foobarbecue

Unfortunately his positronic net contains too much information to duplicate, so I rely on the third law.

Tainnor

Having switched phones a couple of months ago, there didn't seem to be a good option. Either you need to have root - which means that most banking apps won't work anymore -, you need to backup to the cloud which a) not every app supports and b) I don't want to do for more private data, or you need to use the backup API that however some apps also don't support.

It's a mess and I don't understand that Google hasn't fixed that.

Neonlicht

Going from a Samsung to a new Samsung is easy. But if you switch between brands yeah it gets difficult.

scarface_74

What’s wrong with their built in support?

https://support.google.com/android/answer/2819582?hl=en

It doesn’t work like iCloud where everything is backed up - even private app data?

kwanbix

I am an Android guy but this is one of the things that iPhone does much much better.

Openai2

What does Android do better?

Tainnor

It doesn't work for every app. Not sure if it's opt-in or opt-out.

scarface_74

Which apps doesn’t it work with that you think it should?

I am looking through my apps and most of them are clients for server side functionality or productivity apps that use iCloud Drive, OneDrive or Google Drive.

Google Photos would take care of videos and photos and Contacts and calendars use standard syncing protocols.

jasoneckert

I just plug in an external SSD formatted with exFAT via the USB-C port and manually copy folders (Documents, DCIM, Downloads, etc.) to it in the Files app.

After dismounting it in the Settings app (Advanced menu), I plug it into my computer and copy any files over I want to store there too (e.g., Pictures).

seb1204

How do you deal with duplicates when you copy the files?

luqtas

rsync -a --delete --quiet '/run/user/1000/gvfs/mtp:host=SAMSUNG_SAMSUNG_Android_5210f7e3ea5e5417/Internal shared storage' /home/luqtas/Android; notify-send "android backed!"

fulafel

How does this work, isn't gvfs a userspace virtual fs? FUSE?

luqtas

i have no idea... all i did was to click in 'Copy Location' on the 3 dots icon ^-^

kvsankar_

I use Folder Sync Pro to sync files to a NAS. This app provides a lot of flexibility in terms of the kinds of destinations (NAS, various cloud service providers) and support for different protocols like FTP and SMB.

npteljes

Nextcloud for me. I run my own home server, which is just a normal PC on a cheap UPS, on a residential internet connection with dynamic DNS. On that, Proxmox, and Nextcloud lives in there as an LXC container.

On my phone, the Nextcloud app is installed, and that takes care of the photo/video/downloaded file "cloud" sync, and DAVx5 takes care of calendar, contacts, todo. Nextcloud, with additional apps, can also do Kanban, multimedia notes.

prmoustache

Important to note: unless backups are implemented on the nextcloud server itself, this is sync, not backup.

npteljes

I see your point, but from the perspective of the Android phone, this is already a backup. This is because if I lose the phone, I can restore the important parts of its state from the copy on the server - which is the definition of a backup, according to Wikipedia for example.

Now, of course, we can look at more stringent approaches to backing up data, which I already do, but for some reason I didn't elaborate on the original comment. My home server uses ZFS as storage, and I snapshot that from time to time, and I sync those snapshots to another, otherwise offline ZFS storage. The true 3-2-1 I still don't achieve, because both the online and the offline copies are at the same site, but I opted to take this risk.

prmoustache

>I see your point, but from the perspective of the Android phone, this is already a backup. This is because if I lose the phone, I can restore the important parts of its state from the copy on the server - which is the definition of a backup, according to Wikipedia for example.

I am not familiar enough with nextcloud but what happens if - excluding your home server setup - you modify a picture on your smartphone and overwrite it? I guess it is synchronized to the nextcloud server in modified form and replace the original file, right[1]? If so what if you were to realize you screwed up and should not have overwritten it? Hence the reason I am saying it is not exactly a backup.

[1] that would be the behavior I expect of a syncing mechanism, I use syncthing-fork myself for that.

xigoi

Unfortunately, NextCloud for Androidadoes not support syncing directories other than a few hardcoded ones.

Fire-Dragon-DoL

You don't, I gave up. It's a nightmare and it's impossible to backup. What I do is auto backup for tasker, Aegis (2fa), photos and videos, sms, whatsapp.

The rest is lost, or I consider it that way.

If I have some special files I use autosync, but no "backup", just sync to the cloud