| ▲ | Rygian 10 hours ago | ||||||||||||||||
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-... | |||||||||||||||||
| ▲ | jcynix 9 hours ago | parent | next [-] | ||||||||||||||||
With Termux I have rsync at hand, which can compute checksums, delete files after the transfer, etc. That's why I do my complete backup with Termux. And I sort the images on the phone into dated subfolders before syncing them. And having tools like exiftool, ffmpeg, and ImageMagick among others available in Termux is wonderful. | |||||||||||||||||
| |||||||||||||||||
| ▲ | dizhn 9 hours ago | parent | prev | next [-] | ||||||||||||||||
That nextcloud issue is quite weird and people seem to have had better luck with the sync app downloaded from places other than the Play store. I personally would lose any confidence in the app and use a completely separate thing to do the syncing if that happened to me. I actually did use the nextcloud client on pc a while ago and it was kind of fickle in other ways too anyway so I stopped using it. | |||||||||||||||||
| |||||||||||||||||
| ▲ | ksynwa 6 hours ago | parent | prev | next [-] | ||||||||||||||||
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). | |||||||||||||||||
| |||||||||||||||||
| ▲ | overfeed 6 hours ago | parent | prev | next [-] | ||||||||||||||||
> I execute it from within a Termux window... If you install Termux widgets, you can directly start the script from your Android launcher's Home screen. | |||||||||||||||||
| |||||||||||||||||
| ▲ | thekoma 9 hours ago | parent | prev [-] | ||||||||||||||||
How come you don’t just send the md5s to delete rather than the shell script? | |||||||||||||||||
| |||||||||||||||||