π€ Android Auto Uploader to S3-Compatible Storage (Cubbit, etc.) via rclone (Termux-based)
This script scans your Android device's Camera folder and automatically uploads all media files (photos, videos, etc.) to a remote S3-compatible storage, such as Cubbit, organized by year/month It is designed to run on Termux using rclone. π§ Features
β
Dry-run mode: simulate uploads before actually copying
π
Organizes files by modification date (year/month)
β»οΈ Skips files already uploaded (based on size/checksum)
π§Ύ Logs successfully uploaded files
π Compatible with sh (Bourne shell) β works in Termux without requiring bash
π Compatible with
β
Cubbit S3
β
Any S3-compatible service (Wasabi, Backblaze B2, MinIO, etc.)
β
Also works with any rclone-supported backend (Google Drive, Dropbox, etc.) by editing the dest_base value
π Folder Structure Example
βββ 2025/
β βββ 04/
β βββ 05/
π Example Log Output
π Scanning files...
β¬οΈ Uploading IMG_20250426_141233.jpg β s3remote:your-bucket/folder/2025/04/
β¬οΈ Uploading VID_20250501_102859.mp4 β s3remote:your-bucket/folder/2025/05/
βοΈ File already exists with identical content: selfie_20250421.jpg
β
Upload completed: 2 file(s) uploaded to s3remote:your-bucket/folder/ (Files scanned: 3)
π Requirements
- Termux
- rclone installed and configured with an S3-compatible remote
- Access to your /DCIM/Camera folder on Android
- Storage permissions granted in Termux:
Run: termux-setup-storage
π€ Contributing Feel free to submit issues or pull requests.
π License This project is licensed under the MIT License.