this post was submitted on 30 Dec 2024
24 points (100.0% liked)

Android

1886 readers
11 users here now

A place to discuss anything related to Android or Android adjacent.


INFO:


Check Out Our Partner Communities:

[email protected]

founded 4 years ago
MODERATORS
 

I use rsync normally but I want something similar for my Android (GrapheneOS) smartphone. I want to just click and backup everything that I set up earlier. For now I manually copy folders to one and then upload it to external drive. What are your recommendations?

all 22 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 day ago

I use Resilio to constantly back up everything to my NAS, then I run a backup nightly to iDrive e2 from there.

Resilio monitors the folder(s) you pick for new files and instantly uploads them. I have it set to the root at /emulated/0 so it just grabs everything.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

SMBSync2. It looks sketchy as hell but has a pretty intuitive interface to copy files to a NAS.

First create a task saying which folder to copy to where. Then either activate it manually or put it on a schedule. It makes it possible to auto create new folders based on date whenever I do a copy which I love.

[–] [email protected] 9 points 3 days ago (1 children)
[–] [email protected] 3 points 3 days ago

Fork? I heard the original is dead.

[–] [email protected] 6 points 3 days ago (1 children)

I run rooted just so I can backup/restore apps, using NeoBackup. It backs up to a local folder.

That folder, along with pretty much every folder on my phone is synced to a server at home using Syncthing-Fork. This way new data (photos, downloaded files, etc) are always replicated, and I can effectively manage the phone file system by moving files around at home. Any changes I make will sync back to the phone.

[–] [email protected] 1 points 3 days ago (1 children)

I don't want to root my smartphone but I do know NeoBackuo.

So the Fork is still maintaned? And you have 2-way sync yeah?

[–] [email protected] 2 points 1 day ago

It's really frustrating there's no proper backup/restore without root - that's my primary reason for having root.

Yea, Syncthing-Fork is still maintained, though there hasn't been an update for a while. The company that makes Möbius Sync for iOS is a big supporter of Syncthing, hopefully they'll help in some way. Alternatively there's Resilio Sync, but it's hard on phone ram - I'd have to manage it a lot more often. Though it has Selective Sync - I can browse a shared folder from my phone and tell it to sync specific files. This is great for my media server - I can grab any movie/music anytime.

I like Syncthing-Fork better because it moves sync conditions to within each folder. So my DCIM folder syncs on any network or battery condition (so I don't lose photos), but NeoBackup folder only syncs on wifi and while charging.

Pretty much all folders now sync 2-way, and I export the Syncthing config on the phone whenever I change something. That export folder is also synced, so when I switch phones I just install ST, import that config, and after a couple hours the new phone has all the same stuff as the old phone. Then I launch NeoBackup and start restoring.

[–] [email protected] 4 points 3 days ago (1 children)

Generally I don't keep important stuff on my phone. That stuff is in cloud storage and synced down to my phone as necessary.

Personally I use Google Drive, but you could certainly self-host an equivalent.

[–] [email protected] 1 points 3 days ago* (last edited 3 days ago)

I try to but when I do I want to have a backup.

Google Drive is a no no for me but maybe a rclone for Android will interest you: Round Sync https://apt.izzysoft.de/fdroid/index/apk/de.felixnuesse.extract

[–] [email protected] 4 points 3 days ago (2 children)

I just pull important stuff via ADB.

I do that via git-annex' ADB special remote but it's just an abstraction over pulling the files manually.

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago)

Seconding this. Far faster than copying from the phone mounted the default way through MTP over USB.

If you're used to rsync, there's a Python wrapper that makes syncing through ADB work like rsync: https://github.com/jb2170/better-adb-sync

If you're on Windows, I found a simple GUI for browsing the phone through adb and pushing/pulling files, useful for a one time manual backup like I just did in prep for replacing my phone: https://github.com/Alex4SSB/ADB-Explorer

[–] [email protected] 1 points 3 days ago

Oh nice. Gotta try it with git-annex.

[–] [email protected] 4 points 3 days ago* (last edited 3 days ago) (3 children)

I use folder sync pro.

Backs up to my home server or a multitude of online services.

https://play.google.com/store/apps/details?id=dk.tacit.android.foldersync.full

[–] [email protected] 3 points 3 days ago

I've used Folder Sync since about 2011. Killer app.

[–] [email protected] 2 points 3 days ago* (last edited 3 days ago)

It's absolutely awesome and rock solid. It even allows for not syncing deletes, a sort of append-only backup in regards to files. Very handy for photos and especially large videos, because deleting them locally won't delete them remotely! And if you only sync in one direction, they stay off your phone. You can take as many videos as you want without filling up your phone.

[–] [email protected] 1 points 3 days ago (1 children)

How is it working for you? I guess it's not open source...

[–] [email protected] 1 points 3 days ago

No it's not open source I don't believe.

But it works fantastically well for my use case. I just back up the folders I want to back up and it just does it when I want

[–] solrize 4 points 3 days ago (1 children)

rsync over USB via termux but I might try to get Borg workiing on the phone. Also, I chose a phone with an SD card slot so I can back up to that at some point.

[–] [email protected] 1 points 3 days ago (1 children)

Yeah but that's very manual. I'm looking for something that can help me select the folder click backup when eexternal storage is plugged in and that's it.

[–] solrize 2 points 2 days ago* (last edited 1 day ago)

I see there are several backup apps on F-droid but idk what they do. I think you can connect a launch button to a termux script that does the backup. That seems simplest to me, ymmv.

[–] brlemworld 2 points 2 days ago

The basic bitch shit that comes with Google/Android. Most is backed up. I wish there was an iOS like backup/time machine