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. ksynwa+w41[view] [source] 2026-02-02 17:39:57
>>Rygian+Qi
Are you sure all this is really necessary? I just use round sync to copy over the camera and whatsapp media folders over ssh/sftp to my SBC. Then once every several months I delete the files from these foldes which exceed a given mtime (using find in termux).
◧◩◪
3. Rygian+Bf1[view] [source] 2026-02-02 18:32:02
>>ksynwa+w41
I take it as a personal preference to never delete a copy of a file I care about, until I have taken positive proof that it is copied safely where it belongs.

I have deep trust issues with commands that work on more than one file at a time.

[go to top]