Synology Hyperbackup API-NPP
Informació
-
Per executar el programa s'ha de tenir instalat el python versio 3.7 o mes.
-
Requeriments a requirements.txt
-
Requereix una base de dades MySQL amb la estructura en el apartat Estructura de la base de dades.
-
Configuració de la base de dades a
config/config.yaml -
Logs de errors a
errorLogs/*txt -
El fitxer compilar.bat transforma el .py en .pyc que es mes eficient i rapid.
-
Executar amb opcio -h per veure mes opcions i funcionalitats.
Estructura de la base de dades
En una Base de dades que es digui "hyperbackup2" un taula anomenada "credencials":
"usuari" Usuari del NAS amb permisos de lectura al hyperbackup
"contrassenya" Contrassenya del usuari
"url" Enllaç quickconnect amb la barra final
Instal·lació
-
Utilitzant pip:
pip install HyperBackupAPI2-NPP -
Clonant el github:
gh repo clone NilPujolPorta/HyperbackupAPI2-NPP
Ús
Maneres d'execució del programa (ordenades per recomenades)
-
A la linea de commandes
HyperBackupAPI2-NPP [opcions] -
python -m HyperBackupAPI2 [opcions] -
Executar el fitxer
HyperBackupAPI2.pyamb les opcions adients. Llavors les dades es guardaran adadesHyperBackupAPI2.json -
./HyperBackupAPI2-NPP-runner.py [opcions]
Opcions
usage: HyperbackupAPI2_NPP.py [-h] [-q] [--json-file RUTA] [-g] [-v]
Api per saber status de les copies d'hyperbackup
optional arguments:
-h, --help show this help message and exit
-q, --quiet Nomes mostra els errors i el missatge de acabada per pantalla.
--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 -
Documentos\General\Drive\utilitats\APIs\HyperbackupAPI2-NPP\HyperBackupAPI2/dadesHyperBackup2.json
-g, --graphicUI Mostra el navegador graficament.
-v, --versio Mostra la versio
Per configuracio adicional anar a config/config.yaml
Errors coneguts
- 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.
Proximament:
- Afegir support per altres bases de dades a part de mysql
Metadata
Release files for HyperbackupAPI2-NPP 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| HyperbackupAPI2_NPP-0.1.5.tar.gz | 5.1 kB | Without provenance | Details for HyperbackupAPI2_NPP-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| HyperbackupAPI2_NPP-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for HyperbackupAPI2_NPP-0.1.5-py3-none-any.whl |
Total release size: 10.9 kB
Release files / HyperbackupAPI2_NPP-0.1.5.tar.gz
| Download URL | HyperbackupAPI2_NPP-0.1.5.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9972d6842a762f796070468ead9711006e059ac046d279aff0bd99d68adc405
|
|
BLAKE2b-256 checksum How to use checksums |
85e9aaec0a87212754d08a15abfbd381eff5efc4e20bb65b9c86c1a0af06bc82
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / HyperbackupAPI2_NPP-0.1.5-py3-none-any.whl
| Download URL | HyperbackupAPI2_NPP-0.1.5-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62828372d9d40285439d034122d5bd54fb877eede4f7a0cf6e874c580bcdbeab
|
|
BLAKE2b-256 checksum How to use checksums |
5c5bf4d8209faa45776a305f31f327724e913fb12b563d48e0b29a72281e1295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for HyperbackupAPI2-NPP 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.