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. vasco+Dl[view] [source] 2026-02-02 13:46:52
>>thekom+nl
I guess it's a more flexible design that allows to change the criteria for deletions in the future. You still need to calculate md5s on the phone either way.
[go to top]