Live data from Hacker News

Ask HN: How do you backup your Android?

news.ycombinator.com

191–200 of 227 posts

Re: Ask HN: How do you backup your Android?

#191

Earlier quoted context omitted.

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.

One extra tip is to use rrsync to restrict which folders your rsync client can read/write to: https://b.tuxes.uk/termux-rsync-photos.html This helps mitigate ransomware, and escalation (e.g. reading previously backed up files) attacks.

Nice, thank you!

Re: Ask HN: How do you backup your Android?

#193
post #26

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

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

Which I don't really care about tbh

Re: Ask HN: How do you backup your Android?

#194

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 fi…

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?

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

Re: Ask HN: How do you backup your Android?

#195

Earlier quoted context omitted.

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

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

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

Re: Ask HN: How do you backup your Android?

#196

Earlier quoted context omitted.

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

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 cha…

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

Re: Ask HN: How do you backup your Android?

#197

Earlier quoted context omitted.

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…

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

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.

Re: Ask HN: How do you backup your Android?

#198

Earlier quoted context omitted.

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…

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

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.

Re: Ask HN: How do you backup your Android?

#199

Earlier quoted context omitted.

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 t…

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,…

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)

Re: Ask HN: How do you backup your Android?

#200
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.
Post reply on HN