49
submitted 5 months ago by ksynwa@lemmy.ml to c/opensource@lemmy.ml

There are solutions like ente and immich but I think they both are pretty overkill for my use case. I almost never look through my old photos so I don't need an app and a web UI or whatever. The face detection thing does not entice me either. I don't need encryption either.

Is there a simpler solution for this? I am thinking of just writing a script that syncs the camera folder using adb or something like that. But before I create a jank monstrosity I thought it would be better to ask around.

top 26 comments
sorted by: hot top controversial new old
[-] tinsuke@lemmy.world 48 points 5 months ago

Syncthing.

Just configure it to only run while plugged to the wall, so you're not surprised by the rare bug of it randomly turning your phone into a pocket warmer.

[-] lemonuri@lemmy.ml 14 points 5 months ago

I use Syncthing-fork (fdroid). It lets you set you granular per folder settings like only sync on home WiFi.

[-] jet@hackertalks.com 13 points 5 months ago

You can also configure one way syncs. So even if the photos are deleted from your phone, they still exist on the other side

[-] anzo@programming.dev 8 points 5 months ago

iirc the syncthing Android app comes with DCIM camera preconfigured just like that.

[-] kurikai@lemmy.world 2 points 5 months ago

This is important info

[-] snugglebutt@lemmy.blahaj.zone 2 points 5 months ago

Oh, I think that literally happened to me like 20 minutes ago

[-] DevoidWisdom@sh.itjust.works 2 points 5 months ago

This. Simplest solution. I've had mine setup this way for a few years.

[-] Klaymore@sh.itjust.works 1 points 5 months ago

Huh, I've had it run on battery for years, is there some serious bug with that? I don't have it run on cellular data or in battery saver mode though.

[-] tinsuke@lemmy.world 2 points 5 months ago

I had it initially setup to run on Wi-Fi too, battery or charging.

Then I had my battery drain to 30-40% during afternoons, when I'm used to reaching evenings above 60%. Check app usage on settings: Syncthing.

Since I use it mostly for backing up photos, I found it better to enable it only when charging.

[-] sloppy_diffuser@sh.itjust.works 12 points 5 months ago* (last edited 5 months ago)

https://github.com/newhinton/Round-Sync. Not in any app store and have to download and install from GitHub.

It is an Android wrapper around ~~rsync~~ rclone.

Setup a remote, setup tasks, and setup triggers. Mine syncs every night. It supports encrypting with your own keys. Large number of remotes supported from self-hosted to cloud.

[-] lemmyreader@lemmy.ml 2 points 5 months ago

That looks neat and useful. It is an Android wrapper around rclone not rsync. Thanks for sharing.

[-] sloppy_diffuser@sh.itjust.works 2 points 5 months ago

You are correct, fixed!

[-] ksynwa@lemmy.ml 2 points 5 months ago

WOW man this is just incredible. I had actually finished setting up syncthing and syncing with it but this is just so much smoother. Syncthing is nice but it has some weirdness. Like this app's "copy local to remote" (instead of sync) is hidden in advanced configuration while it seems like a useful use case to be.

[-] sloppy_diffuser@sh.itjust.works 2 points 5 months ago

Yeah I don't want locally deleted media (to free up space) to sync those deletions to my remote.

My crypted remotes wrap a B2 Backblaze one which doesn't delete, just hides. Periodically I go clean it up.

[-] DasFaultier@sh.itjust.works 4 points 5 months ago

If you have a network share available on your LAN, you might want to try the FolderSync App. It can make your phone sync its photos every time you're in your WiFi and plugged into the charger.

Alternatively, if you have NextCloud, the NextCloud App can do that for you.

[-] pr06lefs@lemmy.ml 4 points 5 months ago

I went the jank monstrosity path. Well, a few scripts anyway.

I use an app called SimpleSSHD on the phone that lets me ssh in. Then rsync to transfer files. The script to sync pictures is like this:

# file 'droidip' contains the local wifi ip of the phone.  
dip=$(cat droidip)

rsync --append-verify --progress  -avz -e "ssh -p 2222" root@$dip:/sdcard/DCIM/Camera newphonepix

Truthfully it was as much about learning rsync as anything, and now I'm sticking with it because momentum I guess. adb is way faster if you really need to move a lot of files.

[-] tmpod@lemmy.pt 2 points 5 months ago* (last edited 5 months ago)

This. I don't even need real "scripts", I just plug my big drive into my laptop, start dropbear and use the shell (fish) history to get the right command. Takes about 15s to do everything :p

If you want a more continuous thing, you can look into Syncthing or something like that.

[-] nichtburningturtle@feddit.org 4 points 5 months ago

I use nextcloud to sync specific folders to my server.

[-] Treczoks@lemmy.world 3 points 5 months ago

Just use KDE Connect for that.

[-] Creat@discuss.tchncs.de 3 points 5 months ago* (last edited 5 months ago)

"Immich" might be a real option, I don't quite understand why you think it's overkill?

I mean syncthing has been mentioned plenty, but of course Nextcloud also solves the problem. It's can't truly sync a folder, but it works fine for backing up photos and videos.

[-] ksynwa@lemmy.ml 2 points 5 months ago

The shameful answer is that the most convenient method of setting up immich is a docker compose stack but I have podman installed instead.

[-] Creat@discuss.tchncs.de 2 points 5 months ago

Well there more than one solution, if you want it. First of all, podman actually works fine with docker compose files. There may be some adjustments needed in other places, because despite the claim of being "a drop in docker replacement", it just isn't (quite). So assuming you install docker compose (not docker), you can just "docker-compose up" (note the dash) and it should work. Should.

Your can also just spin up a VM and install docker with compose in there, just for testing and/or running immich.

[-] Sir_Kevin@lemmy.dbzer0.com 2 points 5 months ago

I'm not sure if it's open source but I've used SmBsync2 for years and it has every option imaginable.

[-] essell@lemmy.world 2 points 5 months ago* (last edited 5 months ago)

I have SMBsync2 copy over any photos older than 30 days to a location on my local network.

Its free, doesn't run in the background and requires very little setup

[-] czardestructo@lemmy.world 1 points 5 months ago

Foldersync pro has worked flawlessly for me for over a decade. At first I just used samba on my LAN and it would sync at night but then I spun up new and more services and it supports most all of them. I highly recommend.

[-] shaked_coffee@feddit.it -1 points 5 months ago

Maybe take a look at PhotoSync as well, it's not foss but it's a really well-done app and seems to be what you are looking for

this post was submitted on 18 Jul 2024
49 points (94.5% liked)

Open Source

31749 readers
167 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS