{"id":20655518,"url":"https://github.com/nilpujolporta/hyperbackupapi2-npp","last_synced_at":"2026-06-08T14:32:39.472Z","repository":{"id":135628701,"uuid":"460395626","full_name":"NilPujolPorta/HyperbackupAPI2-NPP","owner":"NilPujolPorta","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-05T15:27:17.000Z","size":62220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T22:39:40.069Z","etag":null,"topics":["api-client","hyperbackup","python","python3","synology","synology-nas"],"latest_commit_sha":null,"homepage":"https://github.com/NilPujolPorta/HyperbackupAPI2-NPP","language":"Python","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/NilPujolPorta.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}},"created_at":"2022-02-17T10:56:52.000Z","updated_at":"2022-02-25T11:18:25.000Z","dependencies_parsed_at":"2024-04-03T12:45:12.285Z","dependency_job_id":null,"html_url":"https://github.com/NilPujolPorta/HyperbackupAPI2-NPP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NilPujolPorta/HyperbackupAPI2-NPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilPujolPorta%2FHyperbackupAPI2-NPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilPujolPorta%2FHyperbackupAPI2-NPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilPujolPorta%2FHyperbackupAPI2-NPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilPujolPorta%2FHyperbackupAPI2-NPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NilPujolPorta","download_url":"https://codeload.github.com/NilPujolPorta/HyperbackupAPI2-NPP/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NilPujolPorta%2FHyperbackupAPI2-NPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34067348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":["api-client","hyperbackup","python","python3","synology","synology-nas"],"created_at":"2024-11-16T18:11:34.015Z","updated_at":"2026-06-08T14:32:39.002Z","avatar_url":"https://github.com/NilPujolPorta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synology Hyperbackup API-NPP\n## Informació\n- Per executar el programa s'ha de tenir instalat el python versio 3.7 o mes.\n- Requeriments a requirements.txt\n- Requereix una base de dades MySQL amb la estructura en el apartat [Estructura de la base de dades](#estructura-de-la-base-de-dades).\n- Configuració de la base de dades a `config/config.yaml`\n- Logs de errors a `errorLogs/*txt`\n- El fitxer compilar.bat transforma el .py en .pyc que es mes eficient i rapid.\n- Executar amb opcio -h per veure mes opcions i funcionalitats.\n\n## Estructura de la base de dades\nEn una Base de dades que es digui \"hyperbackup2\" un taula anomenada \"credencials\":\n```\n\n\"usuari\" Usuari del NAS amb permisos de lectura al hyperbackup\n\n\"contrassenya\" Contrassenya del usuari\n\n\"url\" Enllaç quickconnect amb la barra final\n\n\n```\n\n## Instal·lació\n\n- Utilitzant pip:\n\n  ```pip install HyperBackupAPI2-NPP```\n  \n- Clonant el github:\n  ```gh repo clone NilPujolPorta/HyperbackupAPI2-NPP```\n  \n\n\n\n## Ús\n### Maneres d'execució del programa (ordenades per recomenades)\n- A la linea de commandes `HyperBackupAPI2-NPP [opcions]`\n- ```python -m HyperBackupAPI2 [opcions]```\n- Executar el fitxer `HyperBackupAPI2.py` amb les opcions adients. Llavors les dades es guardaran a `dadesHyperBackupAPI2.json` \n- ```./HyperBackupAPI2-NPP-runner.py [opcions] ```\n\n### Opcions\n```\nusage: HyperbackupAPI2_NPP.py [-h] [-q] [--json-file RUTA] [-g] [-v]\n\nApi per saber status de les copies d'hyperbackup\n\noptional arguments:\n  -h, --help        show this help message and exit\n  -q, --quiet       Nomes mostra els errors i el missatge de acabada per pantalla.\n  --json-file RUTA  La ruta(fitxer inclos) a on es guardara el fitxer de dades json. Per defecte es: c:\\Users\\npujol\\eio.cat\\Eio-sistemes -\n                    Documentos\\General\\Drive\\utilitats\\APIs\\HyperbackupAPI2-NPP\\HyperBackupAPI2/dadesHyperBackup2.json\n  -g, --graphicUI   Mostra el navegador graficament.\n  -v, --versio      Mostra la versio\n\nPer configuracio adicional anar a config/config.yaml\n```\n\n### Errors coneguts\n- Si dona error per algun motiu, en els logs et donara un codi, que llavors pots mirar a errorLogs/0codisErrors.txt per saber el seu significat.\n\n### Proximament:\n1. Afegir support per altres bases de dades a part de mysql\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilpujolporta%2Fhyperbackupapi2-npp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilpujolporta%2Fhyperbackupapi2-npp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilpujolporta%2Fhyperbackupapi2-npp/lists"}