zlacker

[return to "Termux"]
1. Rygian+Qi[view] [source] 2026-02-02 13:29:57
>>tosh+(OP)
My usecase for Termux: most pictures get backed up properly into the home NAS, but the sync process sometimes skips a few [1] (which is exasperating, but here we are still not migrated to Immich).

So I have a python script in the NAS that calculates the MD5 checksum of every photo and video, and generates a shell script that, when executed on the phone, will calculate the MD5 on the local device, and delete if it is equal to the NAS.

The generated shell script gets sent to the phone, then I execute it from within a Termux window, pointing at the DCIM folder.

I can free up tens of GB of memories with reliability in the face of a misbehaving sync algorithm.

[1] https://help.nextcloud.com/t/auto-upload-is-skipping-random-...

◧◩
2. thekom+nl[view] [source] 2026-02-02 13:44:55
>>Rygian+Qi
How come you don’t just send the md5s to delete rather than the shell script?
◧◩◪
3. Rygian+oh1[view] [source] 2026-02-02 18:40:57
>>thekom+nl
That would definitely work too.

What I like about my process is that there is only one source script (the python one) to keep around.

[go to top]