{"id":29199017,"url":"https://github.com/timintech/pihole-maintenance-pro","last_synced_at":"2025-07-02T09:06:58.075Z","repository":{"id":301542764,"uuid":"1009582664","full_name":"TimInTech/pihole-maintenance-pro","owner":"TimInTech","description":"Advanced Pi-hole v6.x maintenance script for Raspberry Pi. Full system updates, blocklist refresh, DNS reload, SQLite backup and health checks – ready for cronjobs.","archived":false,"fork":false,"pushed_at":"2025-06-27T12:26:26.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T12:28:34.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimInTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-27T11:16:12.000Z","updated_at":"2025-06-27T12:14:34.000Z","dependencies_parsed_at":"2025-06-27T12:29:23.281Z","dependency_job_id":"3bd18a18-18ea-4ab0-a874-785bfc9e5c74","html_url":"https://github.com/TimInTech/pihole-maintenance-pro","commit_stats":null,"previous_names":["timintech/pihole-maintenance-pro"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TimInTech/pihole-maintenance-pro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2Fpihole-maintenance-pro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2Fpihole-maintenance-pro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2Fpihole-maintenance-pro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2Fpihole-maintenance-pro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimInTech","download_url":"https://codeload.github.com/TimInTech/pihole-maintenance-pro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimInTech%2Fpihole-maintenance-pro/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263108812,"owners_count":23415006,"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","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-07-02T09:06:53.330Z","updated_at":"2025-07-02T09:06:58.059Z","avatar_url":"https://github.com/TimInTech.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pi-hole Maintenance PRO (v4.4)\n\nThis script is designed to simplify regular maintenance tasks for **Pi-hole v6.x** installations. It covers system and Pi-hole updates, blocklist refresh, service checks, optional backups, and logging – tailored for Raspberry Pi OS (Bookworm) and Debian-based systems.\n\n---\n\n## ✅ Features\n\n- System package update via `apt`\n- Pi-hole self-update via `pihole -up`\n- Gravity database rebuild (blocklist update)\n- Optional FTL stats overview \u0026 health checks\n- Backup of `adlist` and `domainlist` using Pi-hole v6.x schema\n- Uses **embedded** SQLite engine via `pihole-FTL sqlite3`\n- Auto-logging to `/var/log/pihole_maintenance_\u003cdate\u003e.log`\n- Safe for Cron automation\n\n---\n\n## 🔧 Usage\n\nRun the script with `sudo` or as root:\n\n```bash\nwget -O pihole_maintenance_pro.sh https://raw.githubusercontent.com/TimInTech/pihole-maintenance-pro/main/pihole_maintenance_pro.sh \u0026\u0026 \\\nchmod +x pihole_maintenance_pro.sh \u0026\u0026 \\\nsudo ./pihole_maintenance_pro.sh\n```\n\n---\n\n## 📁 Backups\n\nIf `pihole-FTL sqlite3` is available, two backup files will be saved to:\n\n```\n/etc/pihole/backup_v6/adlist.sql\n/etc/pihole/backup_v6/domainlist.sql\n```\n\nBackups will be skipped if write permissions are missing.\n\n---\n\n## 🧪 Tested on\n\n- Raspberry Pi 3 Model B / 3B+\n- Raspberry Pi OS (Bookworm, 64-bit)\n- Pi-hole v6.1.1 (Core), FTL 6.2.1, Web 6.2.1\n\n---\n\n## 💡 Notes\n\n- The script **does not require external SQLite binaries**.\n- No Docker, no Unbound – minimal, clean environment.\n- Log file is created automatically under `/var/log/`.\n\n---\n\n## ⚠️ Disclaimer\n\nUse at your own risk. Always review any maintenance scripts before running them on production systems.\n\n---\n\n## 📎 GitHub\n\n[https://github.com/TimInTech/pihole-maintenance-pro](https://github.com/TimInTech/pihole-maintenance-pro)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimintech%2Fpihole-maintenance-pro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimintech%2Fpihole-maintenance-pro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimintech%2Fpihole-maintenance-pro/lists"}