{"id":31452685,"url":"https://github.com/zebrajaeger/kerstin-backup","last_synced_at":"2025-10-01T07:50:03.577Z","repository":{"id":305299457,"uuid":"1022508841","full_name":"zebrajaeger/kerstin-backup","owner":"zebrajaeger","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-19T08:32:05.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T13:26:04.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebrajaeger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T08:16:17.000Z","updated_at":"2025-07-19T08:32:08.000Z","dependencies_parsed_at":"2025-07-19T13:37:57.390Z","dependency_job_id":null,"html_url":"https://github.com/zebrajaeger/kerstin-backup","commit_stats":null,"previous_names":["zebrajaeger/kerstin-backup"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zebrajaeger/kerstin-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fkerstin-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fkerstin-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fkerstin-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fkerstin-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebrajaeger","download_url":"https://codeload.github.com/zebrajaeger/kerstin-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fkerstin-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277811996,"owners_count":25881285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-01T02:00:09.286Z","response_time":88,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-01T07:49:59.814Z","updated_at":"2025-10-01T07:50:03.569Z","avatar_url":"https://github.com/zebrajaeger.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kerstin Backup\n\nA minimalistic smartphone photo backup server built with Node.js and Express.\nIt allows uploading entire folder structures (e.g. `DCIM/Camera`) from your mobile device via browser, using a local web interface – ideal when USB transfers no longer work.\n\nThe files are stored in a local `upload/` directory on the host machine, and the server can be run inside a Docker container.\n\n---\n\n## 🚀 Features\n\n* ✅ Select folders (recursively) via browser (`webkitdirectory`)\n* ✅ Upload files individually via `fetch`\n* ✅ Keeps folder structure using `relativePath`\n* ✅ Stores files on host in `./upload`\n* ✅ QR code displayed on server start for easy mobile access\n* ✅ Optional live reload (DEV mode with BrowserSync)\n\n---\n\n## 📦 Usage (Docker)\n\n### 1. Clone this project\n\n```bash\ngit clone \u003cyour-url\u003e\ncd kerstin-backup\n```\n\n### 2. Build and start the container\n\n```bash\ndocker compose build --no-cache\n```\n\n### 3. Scan the QR code\n\nOnce the server starts, it will display a QR code in the terminal pointing to your local IP (e.g. `http://192.168.0.123:3000`).\nScan it with your phone to access the upload interface.\n\n---\n\n## 📁 Uploaded files\n\nAll uploaded files are stored **on the host**, inside the `upload/` folder – including all nested subdirectories.\n\nYou can inspect them directly:\n\n```bash\nls upload/\n```\n\n---\n\n## ⚙️ Development mode (optional)\n\nTo enable development mode with live-reload (BrowserSync):\n\n1. Edit `server.js` and set `DEV = true`\n2. Run with:\n\n```bash\nnpm run dev\n```\n\nThis will proxy the server through BrowserSync on port `3001` and reload automatically on changes to `index.html`.\n\n---\n\n## 📜 Notes\n\n* Uses `multer@2.0.1` to parse `multipart/form-data`\n* To preserve folder structure, `file.webkitRelativePath` is sent explicitly\n* The actual file writing is performed manually based on `req.body.relativePath`\n* No HTTPS – intended for local network only\n\n---\n\n## 🛡️ Security\n\nInput paths are not yet sanitized – do not expose this server to the internet.\n\n---\n\n## 📄 License\n\nMIT – use at your own risk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fkerstin-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebrajaeger%2Fkerstin-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fkerstin-backup/lists"}