Ask HN: How do you backup your Android?

How do you backup your Android?

127 points

Openai2

a day ago


214 comments

alyandon a day ago

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 a day ago

    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 a day ago

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

  • hiatus a day ago

    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 a day ago

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

    • blactuary a day ago

      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 a day ago
        2 more

        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.

        • blactuary 12 hours ago

          No, they remove all of it, date/time, camera, location, all of that is in the JSON. There are 3rd party tools to automate adding it back, but direct from Google all of your photos will not have any of the metadata

    • karteum 21 hours ago

      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 a day ago

    > 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 a day ago

      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.

    • alyandon 17 hours ago

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

    • bdavbdav 10 hours ago

      Plenty of TOTP apps that sync (including google)

    • radeeyate 16 hours ago

      Google already automatically backs up secrets to your Google Account

    • OJFord a day ago

      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.

    • pynappo 9 hours ago

      aegis authenticator uses google's android backup system.

seszett a day ago

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 a day ago

    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 a day ago

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

      • drio a day ago
        6 more

        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.

        • struanr 21 hours ago

          I have been using Syncthing fork since before the official app was discontinued, and can vouch for its quality. My favorite feature is that it allows conditional pausing of folders based on phone state, such as if the phone is charging or connected to WiFi. Just be warned that the version on Google Play was no longer updated last time I checked (Googles fault), so you're better downloading releases from the Github repo.

        • dsp_person a day ago
          4 more

          Are there any issues or tricks for syncthing in termux, for e.g. always running in the background?

          • hiatus a day ago
            3 more

            Termux persists for me via a silent notification—is that what you mean?

            • johnmaguire a day ago
              2 more

              Dows it auto start at boot?

              • seszett a day ago

                There's Termux:Boot for that.

      • graemep 21 hours ago

        I did not know that.

        Its a definitely problem for me.

    • zx8080 a day ago

      > 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 a day ago

        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 a day ago

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

    • seszett a day ago

      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 20 hours ago
        2 more

        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)

        • seszett 19 hours ago

          Not sure if it restores well because I don't use WhatsApp anymore, but I checked in an old backup and somewhere in the files there's an SQLite3 database "msgstore.db" with a "messages" tables that contains messages.

  • sriacha a day ago

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

    • esperent a day ago

      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 3 minutes ago

        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 a day ago
        2 more

        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.

        • Semaphor a day ago

          I was positively surprised that the German passport app worked rooted without denylist.

      • kQq9oHeAz6wLLS a day ago

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

  • ur-whale a day ago

    > My device is rooted

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

    • grakker a day ago

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

      • exabrial a day ago
        4 more

        Sorry for a dumb question, what are those

        • ashenke a day ago

          Magisk is a way to handle root on Android, it allows to insert system modules to change some things deep in Android. There used to be a feature called Magisk Hide that could make apps unable to detect you were rooted. Now you have to install other modules to circumvent safety net and other checks. It's an arms race : google changes the way it detects things, and modules developers update their circumvention techniques. Try to search "magisk hide 2024" and you should find more information

        • Zak a day ago
          2 more

          To add to the existing comment, the solution I use, and I think the most popular solution right now is called Play Integrity Fix: https://github.com/chiteroman/PlayIntegrityFix/

          I haven't had to touch it in about a year, but some apps may try harder to keep people from having control of their own devices.

          • exabrial 17 hours ago

            This makes me want to switch back more than ever.

    • seszett a day ago

      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 a day ago

      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 a day ago

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

    • elorm a day ago

      Play Integrity Fix.

troyvit a day ago

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 a day ago

    "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.

  • snapplebobapple a day ago

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

  • udev4096 a day ago

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

Tainnor 17 hours ago

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 15 hours ago

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

  • scarface_74 16 hours ago

    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 13 hours ago

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

    • Tainnor 15 hours ago

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

      • scarface_74 10 hours ago

        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.

solardev a day ago

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

  • sunaookami a day ago

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

    • Carbon1603 11 hours ago

      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 21 hours ago

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

      • kwanbix 13 hours ago
        2 more

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

        • solardev 11 hours ago

          What do you mean "set up"? Like when I get a new phone, my previous apps just reinstall themselves. I might have to log back in, but that only takes a sec with a password manager.

          Does it not work like that for you?

          I've only gone from Nexus to Pixel to Pixel though (all Google phones) so maybe that's why?

hollow-moe a day ago

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 a day ago

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

  • udev4096 a day ago

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

foobarbecue a day ago

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

jasoneckert a day ago

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 a day ago

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

npteljes 20 hours ago

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 19 hours ago

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

    • npteljes 18 hours ago

      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 15 hours ago
        5 more

        >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.

        • npteljes 12 hours ago
          2 more

          Ah, right, then maybe I didn't see the point after all. Nextcloud handles this quite well though, I think, it will say, on the phone, that there is a conflict between the two versions of the file, and in case of images, it ever shows them side by side, and asks you what to do.

          • prmoustache 6 hours ago

            OK in that case that makes at least clearer for the user. Thanks.

        • MrDrMcCoy 12 hours ago
          2 more

          Nextcloud has a first-party plugin that keeps a version history, which is very useful to enable to mitigate issues like this. That combined with the default behavior that deletions on devices only go to the trash on the server turns it into a real backup option.

  • xigoi 17 hours ago

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

luqtas a day ago

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 a day ago

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

kvsankar_ a day ago

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.

MrDrMcCoy 11 hours ago

I use adb and a script to pull my data via USB. Backup and restore is easy. Unfortunately, this is largely useless to me. The actual data on my phone already easily syncs as needed as part of the apps I use. What I really care to back up is the app settings and account data, which I haven't been able to successfully transfer. When wiping or changing phones, reconfiguring and logging in to all my ~100 apps is tedious to say the least, even with a password manager. If anyone has a non-google-services, non-root solution to that, I would love to know about it. Convenience and difficulty don't matter, anything can be scripted.

t067633 a day ago

DAYS=(some number); cd /place-to-save-stuff ; adb -e shell "cd /sdcard/; find . -mtime -${DAYS} | cpio -o" | cpio -idmuv # rooting phone not required

  • koolba a day ago

    > find . -mtime -${DAYS} | cpio -o

    That will break if a file name has new lines.

    • grakker a day ago

      Is that really an issue? I just haven't seen a file name with a newline in it. If so, couldn't it just be run with -o0?

  • ur-whale a day ago

    How does that reach into app folders where adb has no permissions ?

    • iggldiggl 18 hours ago

      /sdcard is just the user-visible internal storage (the same thing that shows up via MTP if you connect via USB), and ADB can access that fine.

nvllsvm a day ago

Syncthing for files (music, photos, videos, noted), DAVx5 for contacts+calendar. Everything else is either a client app (email) or ephemeral (text messages).

therealmarv a day ago

Android internal storage backup with Termux (and ssh daemon and rsync):

https://wiki.termux.com/wiki/Remote_Access

and apps I use the internal Google mechanism.

  • cam_l a day ago

    Restic also works pretty well through termux. I found it easier to setup with include & exclude lists than rsync.

    • sureglymop a day ago

      Really interesting! Though what do you back up? Just files?

      • cam_l a day ago

        I use root and back up specific appdata and files to a remote backup. I tried backing up the-whole-damn-thing, but it is slow and pointless, hence the picking and choosing.

t0bia_s 8 hours ago

Seedvault. Natively in LineageOS. It makes fully encrypted backups regularly. Then syncthing-fork to backup data on NAS and desktop.

Restoring took about 15 minutes. It restores everything from apps data to system settings.

dspillett a day ago

Contacts and such I currently "trust" the default behaviours for, though I've got some noted down the old fashioned way for emergencies or if I somehow get looked out of the account. I keep meaning to use Takeout as an extra measure. Photos I sync to my own backup system via rsync+SSH via Termux. Everything else is easy enough to replace or came from other sources (my local media library, etc) anyway. I used to backup more (podcasts & such) via rsync but recent versions of Android have made that more difficult without rooting.

  • stevesimmons a day ago

    For backing up Android contacts, go to https://contacts.google.com/ on your phone or laptop. You can export everything as csv.

    Takes less than a minute It's well worth doing from time to time.

wdfx 15 hours ago

I use syncthing to sync all my photos and a few other bits and bobs to my local NAS. Works wonderfully.

I also took that setup to allow me to sync some selected media back from the NAS to my phone.

This way I am not reliant on cloud services as the primary store of my personal data, and I don't have to use their export tools to get my data back. I back up the original sources directly from the phone to my own infrastructure.

hadlock a day ago

I back up my photos to a Synology NAS via USB cable a little more frequently than quarterly. The NAS does off site backups to aws glacier (low price s3).

Anything interesting I download, pdfs etc periodically I'll backup to the NAS before I retire a phone. Anything that's not photos I just assume are destroyed when I upgrade and that's fine I don't keep anything else on my phone.

The NAS for backing up my desktop has been very freeing, dumping my Documents folder to the network and installing a fresh copy of Linux or whatever is very freeing.

elorm a day ago

I use LineageOs and my device is rooted. Weekly backups via seedvault (including files) to a dedicated backup server. I haven't done a restore in ages so I don't have any inkling of what may work or not but I like the simplicity of the routine.

ken_o_balony a day ago

Install adb then:

adb pull /sdcard/ /path/to/backup

hot_gril a day ago

I've never used Android, so the answers here are surprising. There's really no equivalent to iTunes/Finder that'll just back up your phone to a PC?

  • daveoc64 19 hours ago

    This is partly because Android apps may store data in one of several locations.

    In previous versions of Android it was possible for apps to store data in an arbitrary folder on the device (if the user granted the relevant permission).

    That resulted in it being quite difficult for the OS to identify which files and folders related to any single app.

    In more modern versions of Android, most apps are no longer allowed to write wherever they want, and are encouraged to only store data in a private folder (like iOS).

    A backup system is now present that can back things up in a manner to iOS, but it's limited to 25MB per app, and some apps opt out:

    https://developer.android.com/identity/data/autobackup

    • scarface_74 15 hours ago

      What’s the motivation for app makers to completely opt out?

      I understand that some data is considered cached and shouldn’t be backed up. But Android already allows that.

      > Auto Backup excludes files in directories returned by getCacheDir(), getCodeCacheDir(), and getNoBackupFilesDir(). The files saved in these locations are needed only temporarily and are intentionally excluded from backup operations.

      Overall though, this has been a solved problem since 2010 on iOS. True you only get 5GB of iCloud storage by default. But you can pay for more or use iTunes for local backup

      • rmgk 12 hours ago

        Basically, opting out is the most reliable way to not accidentally give Google full access to private use data because backups are stored in their cloud by default.

        My understanding is that this was the same for Apple until they added e2e encrypted backups, but Apple users seem much less sensitive to privacy violations done by Apple (which is probably reasonable given that Apple is not as focused on profiting off of data)

notarealllama a day ago

Interesting! The only thing of value are pictures, notes, and TOTP 2FA.

I use kde connect to backup the first two, and store keys at time of creation instead of scanning QR code for the last one.

Which then gets into my NAS / 3-2-1 manual backup process.

est a day ago

Just copy DCIM to NAS

Everything else like contacts, sms, software backups goes to the cloud.

m-p-3 a day ago

All the stuff I care about is all backed up in some form (photos to Google Photos, emulator game saves through Syncthing between my decices, contacts in Google Contacts, emails are in Gmail, credentials through Bitwarden, etc).

  • scarface_74 15 hours ago

    I can literally throw my iPhone in the ocean, buy another phone, log in to my Apple account and my new phone looks and works just like the old one with all of the settings, Home Screen app placement, widgets being in the same place and local app data being restored.

    You would be missing all of that

    • m-p-3 13 hours ago

      Which I don't really care about tbh

dhumph a day ago

Plug my phone into my computer and run a php script that puts all the photos in neat folders onto a hd attached to a pi. Sound like i could upgrade based on the responses here.

JJOmeo a day ago

Google for contacts and small stuff. Photos get copied to a home server which itself gets backed up. I've used rsync front-ends, non-standard apps which I don't like (PhotoSync). It's been plain SMB shares accessed through CX Filebrowser recently, I haven't cared to get fancy. I'm always using this SMB share with various devices anyway because tons of things "just work" like VLC on Chromecast.

  • datavirtue a day ago

    How do you copy the photos to a home server?

analog31 a day ago

I use my Android tablet for sheet music. The music often gets annotated during rehearsals, and so it needs to be backed up. I find that SyncThing works great for this, and my backups go to another PC in my house. Since it doesn't require the cloud, I can access it in performance spaces where I can't get WiFi.

Everything else is backed up through their respective services, such as Gmail, and I just don't have an interesting enough digital life to have much else to backup.

Git works fine with Termux.

modelorona a day ago

Aegis for 2fa. Can backup to a file which can then be imported on the new phone.

Google's own backup service for normal backups. When I was rooted I used titanium backup but that was ages ago.

And then a lot of apps that have data that I care about have an export/import functionality, so I can just copy those over without much hassle.

MrDresden a day ago

2FA is Authy which backs up everything automatically.

Google photos for images, and a periodic download to my computer of original sized images (then backed up to other locations).

Any other data worth storing is placed in my persona Nextcloud instance (backed up via BorgBackup to an offsite location multiple times a day).

apex_sloth 15 hours ago

Restic over termux triggered by Tasker to s3 (backblaze) . Addionally syncthing to my laptop. Sounds unnecessary complicated, because it it's.

treyd a day ago

I use CalyxOS and sync with the Nextcloud app to my home server. There is Seedvault built in but I've found it to be slightly janky. Many apps can directly operate on files synced through the Nextcloud app like that, or at least directly export backups to Nextcloud through the file provider APIs. Calendars and contacts are supported through WebDAV apps lile DAVx5.

It pretty much just works with little manual involvement.

TheHiddenSun 19 hours ago

Resilio Sync. Very efficient and fast. Start periodically on desktop and phone to sync all needed data both ways. Uploading data from desktop to s3 compatible storage as backup.

seba_dos1 17 hours ago

The Android container on my phone keeps its data in ~/.local/share/waydroid/data, so it just gets rsynced with the rest of the backup.

  • bean-weevil 9 hours ago

    I've wanted a linux phone for quite some time. Which phone do you have? How good is the waydroid experience? Can you use apps that access bluetooth devices? Do you have any regrets?

AzzyHN a day ago

Things I cannot (easily) replace, such as contacts and photos, I keep with Google (this will change once I run out of free space, most likely). For passwords, I use Bitwarden.

Everything else is either account-based, or can backed up using Seedvault (a backup solution integrated into AOSP, and therefore present in GrapheneOS)

prmoustache a day ago

I don't backup my android but I synchronize some stuff (photos/docs) using syncthing-fork. These are then backuped on the server they are synced to.

Additionally I sync my calendar and contacts with davx. Same as before, backup is done on the server itself.

I don't see the point making a backup of installed apps and their local config.

awaaz a day ago

I just spent the last few weeks figuring out how to solve this problem for myself after running out of space on my free Google plan, so here goes.. I do have a NAS at home, so I was basically trying to move my backup from Google Cloud to my local NAS. Another consideration was that my wife should be able to use the solution so it needed to be simple and hands-off.

Probably the most difficult to solve for is Google Photos. Google offers 15 GB, and this gets filled up really fast if you take a lot of photos and videos. I don't, but still with every phone upgrade I've tried to move all files over to my new device, which results in space running out quite quickly. On top of that, Photos is actually _really_ nice. It works seamlessly, and offers features like facial recognition out of the box.

Anyway, I tried 3 different options - Nextcloud, Syncthing, and Immich.

Nextcloud was a little too complicated to setup, even with docker. Wasn't impressed by it.

Syncthing had an issue with Android app support. I think there are a couple of forks, but I didn't want to rely on that.

Immich was what I finally settled on. It is photos/videos specific, so doesn't work as a general purpose backup but I was more than happy just solving for this. My Google storage was being used roughly half and half by Email and Photos. Solving for half was good enough! On the plus side, Immich is a really impressive Google Photos replacement, and behaves almost exactly the same as the Google app, and has advanced features like facial recognition, dupe detection etc.

For email, contacts, SMS etc, I'm still relying on native Google backup.

Finally, there was Whatsapp. I had disabled Google backup a while ago, but wanted to preserve the photos from it. For that, I configured Immich to sync the whatsapp images folder with my library, and that's been working perfectly well.

udev4096 a day ago

Seedvault. What I miss is a backup app which can take a full snapshot of the current state and make it flashable from adb or TWRP. Although, I think that method would definitely require root which is not worth the hassle

Zak a day ago

I use EasySSHFS to mount a backup directory my desktop, then NeoBackup to back up apps to it. Both require root.

electricant 20 hours ago

Syncthing to my home NAS. Bakup is triggered automatically when the phone is connected to the wifi and charging (which happens every night).

simondanerd a day ago

Syncthing for loose files and exported backup configurations, SMS Backup & Restore Pro for text messages, radicale for calendar and contacts in addition to Zoho (email provider). Immich and Google photos sync photos in the background.

dyingkneepad a day ago

The important stuff gets auto uploaded to my NAS via the NAS app, whenever I'm home.

FrostKiwi a day ago

Self-hosted Nextcloud + Nextcloud's auto-upload feature. Works on non-media as well.

Used to do complete system mirrors with lower level backup solutions, but gave up, when I realized, that I won't be restoring it to a phone anyways.

uncharted9 19 hours ago

Syncthing-Fork running on phone in background and syncing one-way to my PC all the time on home network

palata 15 hours ago

Genuine question: what do you feel the need to backup other than photos?

  • lxgr 11 hours ago

    So many things! Just recovering my (device-bound, i.e. explicitly opted out of cross-device restores) 2FA authentication credentials, banking apps etc. takes me a few hours on iOS.

    Restoring all app data and configuration would probably take me several days. The fact that Android still doesn't offer an equivalent to iTunes local backups of iOS devices was one of the reasons I switched.

  • arkaic 15 hours ago

    I echo this. Having gone through several phones over the past few years, configuration settings just feel ephemeral, and there are headaches involved in porting them to different systems. And anything that's even remotely important gets backed up on a cloud.

  • unethical_ban 14 hours ago

    At the least, contacts. Possibly local notes too.

    If someone likes their layout, perhaps the config of their launcher.

m463 a day ago

wow, hacker news and all these people just "phoning it in"

We really need more folks to hack on their phones and set/spread a good example.

Otherwise "general computing" will be replaced by landlords.

The concept of a landlord may be traced back to the feudal system of manoralism (seignorialism), where a landed estate is owned by a Lord of the Manor...

https://en.wikipedia.org/wiki/Landlord#History

  • deathanatos a day ago

    Perhaps a few more responses now from people who own their data?

    There are still a scary few "I use adb" or "I copy the data over MTP"

    Sadly, not everything on the phone is visible to those two. IIRC, [MS]MS logs aren't (I might be wrong here though) and if you use Google Authenticator, your OTPs aren't, which I learned the hard, hard way.

    I need to root my phone.

    • thebeardisred a day ago

      Tragically, as you mention, the security restrictions on most apps at this point block filesystem access via adb.

      Wild to learn about the OTPs, I'll need to take a look and (likely) rectify that security hole since I manage my backups myself (at enrollment time the keys go in escrow).

  • scarface_74 15 hours ago

    My phone is an appliance. I have no more desire to manage my phone than I do my dishwasher.

    I sign into my Apple account, pay Apple for more storage and everything gets backed up that’s on my iPhone and iPad.

    When I get a new phone, I log in while I’m at the Apple Store, wait for everything to be restored, wipe my old phone and give it back to Apple for a carrier discount or a discount from Apple.

    Life is too short to do otherwise. I work with computers 40 hours a week in exchange for money that I then exchange for goods and services.

  • cf100clunk a day ago

    xdaforums abides! Be of good cheer.

LeoPanthera a day ago

Off-topic: The exact phrasing of this question is probably going to mean something completely different in a generation or two.

1vuio0pswjnm7 15 hours ago

FTP over LAN with no access to internet gateway.

uncomplexity_ 6 hours ago

none

phones are treated as disposables

including all data around it

simpler that way

flas9sd a day ago

Seedvault, Syncthing, DAVx5-to-Nextcloud, Signal Archive, passwordstore.app (discontinued) + git

  • nabakin a day ago

    I see Seedvault allows you to backup and restore app data. Are there any issues transferring app data from one device to another? Screen size, Android version, hardware, etc could all be different.

danparsonson a day ago

+1 for Syncthing, and self-hosting a few services like Bitwarden so the data is under my control.

eternityforest a day ago

SyncThing-fork, Google cloud for everything I can, and FolderSync handles that!

compootr 17 hours ago

GrapheneOS's backup system

bongodongobob a day ago

I don't. Anything worth saving is not on my phone.

  • ur-whale a day ago

    > I don't. Anything worth saving is not on my phone.

    This is the way.

hagbard_c 16 hours ago

All personal data - photos/videos, mail, messages, etc - is synced to my own server. Since I mostly use web apps running on my own server there isn't that much personal data or configuration on the things anyway. Configuring a 'new' device comes down to installing an AOSP-derived distribution without any Googly bits, add F-Droid to get applications, add Termux and the necessary applications to:

- connect to my network: Wireguard (encrypted tunnel)

- keep out unwanted content: Adaway (hosts-based content blocker), AFWall (firewall configuration)

- access control to my own and other services: Aegis (TOTP app, configuration is synced to the server)

- access services on my own server: Nextcloud (sync), DavX5 (contacts, agenda), K9 (mail), Conversations (messaging), DSub (audio), Antennapod (netcasts, syncs with gpodder on Nextcloud), Audiobookshelf (audio book player), M.A.L.P (controls several MPD instances around the premises), zmNinja (Zoneminder viewer, used for video surveillance around the farm), Timelimit (access controls for my 13yo daughter's devices), Librera Reader (eBook reader, connects via OPDS to archive on server)

- add the few proprietary applications needed: BankID (Swedish electronic ID), DigiD (Dutch electronic ID), DB Navigator (German railway app), NS reisplanner (Dutch railway app), Västtrafik To Go (Swedish railway app for western Sweden). These all connect to accounts on remote services and do not keep local state so backups are not needed, for the first two backups are not even useable on other hardware since their state is directly connected to the IMEI and/or IMSI of the local device.

Once configured I make a backup in the recovery (TWRP, PBRP etc) which I sync to the server. After that I only make backups after more radical changes to the device, e.g. when I install a new distribution. The rationale for this is that it is always possible to recreate the device from 'scratch' by following the above steps, these are scripted for a number of devices. All personal data ends up on the server (currently a DL380 G7 running Proxmox) which gets backed up daily. If and when a device breaks or gets lost in some way I can recreate it after repairing or replacing the hardware and firmware.

Apart from the mentioned proprietary apps there is no data leakage outside of my own network.

Refusing23 17 hours ago

i have passwords in bitwarden and i backup my photos regularly to my pc

aucisson_masque a day ago

You don't. Google backup is partial and very limited compared to what apple does, plus privacy issues and you don't get access to app folder without root. (I know about adb but then you can't push the files back there).

So it's a shitshow as usual with Android, it all depends on the app. My weight lifting app it can backup on Google cloud. Great. My 2Fa on the other hand it only backup to the 'external' storage, need to transfer it to the computer then. Some app don't have backup option. Some app give backup option but then break when you restore it, like moon reader. Some books just disappeared from the backup.

And so on, and so on.

At the end I focus on photo, obsidian vault and 2fa. Everything else is just bonus if I backed it up.

  • dismalaf a day ago

    Last time I had an Apple device the only way to backup was plugging it into a desktop with iTunes.

    How do you figure Google's backup (which backs up contacts, messages, photos, mail, and remembers which apps you have installed) is bad? What more could it do or should it do in your opinion? Also Google Authenticator now backs up to your account and you can recover it through a logged in browser.

    • scarface_74 15 hours ago

      > Last time I had an Apple device the only way to backup was plugging it into a desktop with iTunes.

      That hasn’t been true since 2011 with iOS 5.

      I remember it well. I upgraded my iPhone 4 on AT&T with iOS 5 using iTunes. Shortly afterwards, I had an iPhone 4s shipped to me from Verizon.

      I logged into my Apple account on my iPhone 4s and after it restored everything, it looked and worked just like my iPhone 4 with all of the settings and app icon positions bring in the same place.

      There is also internal app data that gets backed up

    • eadmund 19 hours ago

      > How do you figure Google's backup (which backs up contacts, messages, photos, mail, and remembers which apps you have installed) is bad?

      It uses Google. I have servers, desktops, laptops and phones, all of which are computers and all of which are on a local network. It should be possible for me to move all the data on my phone to a server, desktop, laptop or other phone without once sending a single byte outside of my network.

    • K7PJP a day ago

      > Last time I had an Apple device the only way to backup was plugging it into a desktop with iTunes.

      Apple's supported full iCloud backups and over-the-air restore for at least 11 years, maybe 13 years.

      • dismalaf a day ago
        13 more

        Yeah, I would have figured. My actual question is how is Google's backup lacking?

        • Krutonium a day ago
          7 more

          It backs up... Photos, basically? With an iPhone you can take a complete image of the device, and never lose a file again. With Android, solid chance you'll never migrate to a new phone and not lose stuff. It's such a fucking shitty thing that doesn't need to be.

          • dismalaf a day ago
            6 more

            I've gone through like 5 Android phones back to back. Photos, documents, emails, installed apps, contacts... It's all seamless and works, literally just with Google's defaults.

            What do you think you lose?

            • kasabali 21 hours ago
              5 more

              App data. Play store simply reinstalls the apps but they're in a clean state. Some apps supposedly back up and restore their data from Google cloud but that's rare.

              • dismalaf 17 hours ago
                4 more

                Honestly, I can't think of a single app that doesn't back up its own data. Meta apps have their own backup mechanism, games all backup either through their own servers or Play Games service, pretty much everything I use is a service of some sort.

                But yeah, I guess Google isn't backing up the state of the offline chess app I downloaded 10 years ago...

                • Tainnor 17 hours ago
                  3 more

                  It's nice that you don't have this problem with the apps that you use, but others do.

                  • dismalaf 16 hours ago
                    2 more

                    Can you give an example? An app that doesn't back up data that's essential to you?

                    • MrDrMcCoy 11 hours ago

                      Not the same person, but this affects me and I can explain. I have around a hundred apps installed, and use them just frequently enough to keep them around. All of them can sync their data back to a new device without issue.

                      The problem is that when a new or wiped device installs those apps again, they won't have any of their account or configuration data. Even with a password manager to help, logging back in and configuring my preferences is a tedious, all-day affair. In years past, there were ways to transfer account data, but they stopped working a long time ago. I am eager to find a solution to this that works without root and on modern Android.

        • fragmede a day ago
          5 more

          to be clear Apple's "full" icloud backup is full in name only. if you get a new iphone and do a backup and restore, expect to spend several more hours setting up various apps and details on your new device. you'll have to log in to your apps on the new device and setup things there if the app doesn't work with iCloud's backup mechanism.

          it might be better than android's backup system, but it still leaves a lot to be desired.

          • xuki a day ago
            3 more

            It's a feature, not a bug. Apps like banks or Signal don't want to get backed up as it's a security risk if someone could just duplicate the authentication.

            • josephcsible a day ago
              2 more

              The owner of a phone should be able to back up all of the data on it, regardless of the wishes of anyone who doesn't own said phone.

              • xuki a day ago

                I don't disagree, but I vote with my wallet. If the owner of the phone doesn't agree with that, they could stop using the phone/apps. Similarly the biometric data also doesn't get backed up or transferred over to a new phone. That's a product decision and I'm just explaining why things are done that way on iOS.

          • seb1204 a day ago

            Yep, Signal is not backed up via iCloud for example

  • XorNot a day ago

    Yeah Google's implementation here objectively sucks.

    I should be able to toss my phone in a river, buy a new one and get it back exactly the way it is.

    Syncthing handles the stuff which matters to me, but it can't get apps back exactly the way they were.

baobun a day ago

Step 0: Use a reasonable device.

Story from a few years back: I have an old Samsung Galaxy I needed to migrate off of. As I recall, the only way to back up all the important data without involving trusted cloud infra was unlocking the bootloader and using TWRP. Don't recall if rooting was also part of the process - I think I wanted to back up before attempting rooting and later actually reflash it. Somehow I think I managed to trip a hardware fuse in the process because the device bricked and I'm not sure if I will ever be able to get at that data or if it's already gone forever...

Especially infuriating that what caused the full data loss was an attempt to back it up!

I'm so done with combating malicious manufacturers and OSs.

arkensaw a day ago

I backup photos onto external drives every few months when I remember too. Is there anything else to backup?

  • AzzyHN a day ago

    Contacts, SMS messages, that sort of thing. Some people are also really particular about all their settings and widgets and such.

    • harvodex a day ago

      I just can't imagine having to worry about this.

      It is why I like a low end Samsung android. It is borderline disposable and I would never view it as more than temporary storage. Works until it breaks or I lose it then start over. In the meantime, if something is that important it mounts easy in linux and I copy over what I want to save.

ThrowawayTestr a day ago

Samsung smart switch has a backup feature on the PC application.

jokethrowaway 18 hours ago

Copy all photos / videos periodically to my linux server where everything important lives and gets backed up. Everything else gets nuked.

If I change phone I log into Google, start from scratch and download the apps I need / log in wherever I need the first time I need to.

I'm not very happy with using Google / Gmail for contacts and as a login manager, I've been postponing de-googling for 5+ years. The only promise I made to myself is that I'm not giving them a cent (and I keep living with 3% free space).

anotherevan a day ago

I recently put my backup strategy to the test upgrading from Lineageos 20/Android 13 on a Oneplus 8pro to Lineageos 21/Android 14 on a Pixel 8pro, so can claim it works - mostly. Rooted OS in both cases.

For contacts, I use DAVx⁵ to sync with a Nextcloud install on my NAS. All my family's phones do this and it makes it super easy to add and edit contacts sitting at the desktop instead of in the phone (I hate typing on the phone and avoid it where I can).

For calendar I use Google calendars. Again, whole family uses and we share via that. If I was to shift I would probably look at DAVx⁵ and Nextcloud like contacts, but syncing when away from the home network may be more of an issue here. (Business Calendar is my preferred calendar app currently - although I believe they may have switched to a subscription model since I bought it.)

Messages and call logs are backed up by Swift Backup (more on that below).

I'm a Bitwarden user so that takes care of passwords and TOTP.

I use Foldersync to do a two-way sync of photos (the DCIM folder, and other photo folders) between my phone and the NAS via SFTP, when on the home wifi. It does a really good job of this I've found.

For actual application backups I use to use Titanium Backup which I'd previously found very good. Unfortunately it appears to no longer be maintained as the last update in the Play store was 2019 and it definitely does not work with Android 13 and later.

These days I have three different backups running. I started with Neo Backup which is okay although instability earlier in its development made me want an alternative. That's when I came across Swift Backup which has a bit more of a solid feel to it. At some point I saw a Lineageos blog post about Seedvault so turned that on too. The backup files for all three are sent to my NAS via Foldersync just like photos.

I'm going to be away from home for five weeks later this year and am pondering if I want to stress about off-phone backups for that time. I might look at using Folder Sync to some other target, or think about using Syncthing Fork. That said, a five week old backup is probably going to be 95% okay to maybe not worry too much.

--

So how was restoring? It was still painful to be honest.

The good:

Seedvault restored the data on probably half my apps. Could not really figure out the whys as to which it did and which it didn't. It was disappointing in that regard.

I can't remember if it was Seedvault or Swift Backup, but restoring messages was not a drama.

Most other apps I could restore from either Swift Backup or failing that, Neo Backup.

The Bad:

Some account details, mainly the DAVx⁵ ones, I had to re-enter again by hand. Fortunately I've documented the URLs and configuration settings this time to make it easier in the future.

I still had to go through each app and check it was working as expected and had my data. Sometimes had to completely uninstall the Seedvault version and restore from Swift Backup or Neo Backup to get the data. I think a couple of apps I had to install fresh from the Play store or F-droid before doing just a data restore, or there was no way to restore data.

All in all it was a lot of frigging about.

Lessons learned:

Redundancy is good! I would recommend Swift Backup and at least one other backup - be it Seedvault, Neo Backup, Google or another option.

Doing a comprehensive restoration is time consuming! There is no click-and-restore-the-whole-phone solution which is a pain.

Currently, root access seems to be needed for even a decently reliable backup.

And before you ask: I've used Magisk in the past, but have tried out Apatch which fills a similar role with hte new phone and feels a bit easier to deal with. That, along with chiteroman/PlayIntegrityFix gets Google Wallet and some other apps working for me, but it is an annoying arms race.

I also use Netguard as my network firewall - don't have a phone without one. Used Afwall+ on my previous phone but was flaky on the new one so went with the second choice.

Timber-6539 a day ago

My contacts are saved in Nextcloud. For other local data, I have Magisk and back up apps (including data) weekly using NeoBackup. Syncthing also comes in handy for other specific data that I need to save.

RIMR a day ago

The only thing on my phone that really ever needs to be backed up is my pictures, videos, and audio recordings. I use Owlfiles to automatically back all that up to my NAS via Tailscale for fast secure connectivity to my home network. Everything else is Nextcloud on the same system. All of that data gets backed up daily to Backblaze B2, and once per month I write everything to an LTO-6 tape that I swap out between 3 tapes: One in my bank deposit box, two in my firesafe.

Backblaze costs me about $100/year for the ~2TB of data I store there.

I got my LTO-6 drive for free from my employer after we upgraded to LTO-8.

I got a 20-pack of new LTO-6 tapes from eBay for $100, and have no idea what to do with the remaining 42.5TB of space. I guess after several years of rotating my existing tapes, I should start using new ones.

dismalaf a day ago

By signing into my Google account.

dmitrygr a day ago

"adb backup" sometimes works (when it does not hang randomly). Restore also sometimes works. This was one of the reasons i got an iPhone, TBH

exe34 a day ago

I have a folder synced with syncthing to my laptop and a raspberry pi that has a hdd. I actually have three hdds that I rotate now and again.

sagolikasoppor a day ago

I use Nextcloud to backup images or potentially other files. Other than that, there is nothing important to backup.

bananapub a day ago

it really is just astonishing how far behind iOS Android is on this front, in 2025.

aristofun a day ago

By throwing it in a trash bin :)

Pretty reliable and you only need it once )

  • joehf 16 hours ago

    Iuse unison to sync to a private server and borg to backup most of /data to the same server via ssh, both from termux. I restore quite often, when reinstalling phones ( rDroid)