{"id":37066081,"url":"https://github.com/fgbm/ubarec","last_synced_at":"2026-01-14T07:45:06.904Z","repository":{"id":62586023,"uuid":"337541996","full_name":"fgbm/ubarec","owner":"fgbm","description":"Universal backup and recovery using S3 storage","archived":false,"fork":false,"pushed_at":"2021-08-02T18:51:47.000Z","size":110,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-28T09:00:32.863Z","etag":null,"topics":["backup","ms-sql","postgres","restore","s3-storage","yandex-storage"],"latest_commit_sha":null,"homepage":"","language":"Python","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/fgbm.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}},"created_at":"2021-02-09T21:32:15.000Z","updated_at":"2022-01-14T07:18:12.000Z","dependencies_parsed_at":"2022-11-03T22:04:48.396Z","dependency_job_id":null,"html_url":"https://github.com/fgbm/ubarec","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/fgbm/ubarec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgbm%2Fubarec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgbm%2Fubarec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgbm%2Fubarec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgbm%2Fubarec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fgbm","download_url":"https://codeload.github.com/fgbm/ubarec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fgbm%2Fubarec/sbom","scorecard":{"id":398401,"data":{"date":"2025-08-11","repo":{"name":"github.com/fgbm/ubarec","commit":"b933ef78a25c306fe4f25193e3d8b9dabedccf33"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/python-test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/fgbm/ubarec/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/fgbm/ubarec/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/fgbm/ubarec/python-test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/fgbm/ubarec/python-test.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/python-test.yml:50","Warn: pipCommand not pinned by hash: .github/workflows/python-test.yml:51","Warn: pipCommand not pinned by hash: .github/workflows/python-test.yml:53","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T19:34:12.999Z","repository_id":62586023,"created_at":"2025-08-18T19:34:13.000Z","updated_at":"2025-08-18T19:34:13.000Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["backup","ms-sql","postgres","restore","s3-storage","yandex-storage"],"created_at":"2026-01-14T07:45:06.314Z","updated_at":"2026-01-14T07:45:06.897Z","avatar_url":"https://github.com/fgbm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Pypi version](https://img.shields.io/pypi/v/ubarec.svg)\n![Python versions](https://img.shields.io/pypi/pyversions/ubarec)\n![build](https://github.com/fgbm/ubarec/workflows/build/badge.svg)\n![License](https://img.shields.io/github/license/fgbm/ubarec.svg)\n![Downloads](https://img.shields.io/pypi/dm/ubarec)\n\n# Ubarec\n\n[Russian](https://github.com/fgbm/ubarec/blob/master/README.ru.md)\n\nThe utility is designed for backup and restore databases to S3 storage. \nSo far, PostgreSQL and MS SQL databases are supported.\n\n## Install\n\n### Ubuntu\n\nThe basic dependencies and package are easy to install:\n```bash\nsudo apt install -y p7zip-full unixodbc-dev python3.8 python3-pip \u0026\u0026 python3.8 -m pip install ubarec\n```\n\nWhen working with MS SQL, you must install the appropriate [ODBC driver](https://docs.microsoft.com/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server).\n\n### Windows\n\nThe program uses the console archiver [7-Zip](https://www.7-zip.org/download.html), \nwhich should be pre-installed in any convenient way, for example, with the\n[chocolatey](https://chocolatey.org/):\n```powershell\nchoco install 7zip \n```\n\nThe module is installed from the environment with administrator privileges:\n```powershell\npy -m pip install ubarec\n```\n\n## Working principle\n\nIn backup mode Ubarec performs the following actions for each of the databases specified in the command line parameters\n- forms database dump (either by executing SQL script or using standard utilities)\n- archives the dump using 7zip; if the `UBAREC_ZIP_PASSWORD` environment variable is set, the archive is password-protected\n- the created archive is copied to the S3-storage\n- files created during the previous stages are deleted\n\nThe formed database archive has a file name by mask:\n\n```The current hostname\u003e__\u003cDB name\u003e__\u003cTime Label\u003e.zip```\n\nIn recovery mode Ubarec performs the following algorithm:\n- searches for the last archive of the specified database in the S3 storage\n- copies the found archive to a temporary folder\n- unpacks the archive using the `UBAREC_ZIP_PASSWORD` password\n- if the `do_restore` key is specified, restores the database in the DBMS either by executing an SQL script or using the standard utilities (depending on the DBMS type)\n- deletes the files created during the previous steps; if the `do_restore` key is specified, the database dump remains\n\n## Configure\n\nAccording to the principles of the [12-factor application](https://12factor.net/), \nUbarec takes settings from environment variables.\n\n| Name                     | Required? | Default value                     | Description                                             |\n| ------------------------ | --------- | --------------------------------- | ------------------------------------------------------- |\n| `UBAREC_ENDPOINT_URL`    | No        | `https://storage.yandexcloud.net` | S3 object storage entry point                           |\n| `UBAREC_REGION_NAME`     | No        | `ru-central1`                     | Region name                                             |\n| `UBAREC_ACCESS_KEY`      | Yes       |                                   | Bucket access key ID                                    |\n| `UBAREC_SECRET_KEY`      | Yes       |                                   | Bucket secret key                                       |\n| `UBAREC_BUCKET_NAME`     | Yes       |                                   | Bucket name                                             |\n| `UBAREC_ZIP_PASSWORD`    | No        |                                   | ZIP password                                            |\n| `UBAREC_DB_TYPE`         | No        | `mssql`                           | Database type ('mssql' or 'postgres')                   |\n| `UBAREC_DB_HOST`         | No        | `localhost`                       | Database server                                         |\n| `UBAREC_DB_PORT`         | No        |                                   | Database connection port                                |\n| `UBAREC_DB_USERNAME`     | Yes       |                                   | User name to connect to the database                    |\n| `UBAREC_DB_PASSWORD`     | Yes       |                                   | Password to connect to the database                     |\n| `UBAREC_DB_DRIVER`       | No        |                                   | ODBC driver to connect to the database (used for MSSQL) |\n| `UBAREC_TEMP_PATH`       | No        | User temporary files storage      | Path for storing temporary files                        |\n| `UBAREC_LOG_PATH`        | No        |                                   | Log storage path                                        |\n| `UBAREC_DEBUG`           | No        | `False`                           | Debug mode                                              |\n| `UBAREC_FILENAME_PREFIX` | Нет       | `{hostname}__{backup_name}__`     | Prefix of file name uploaded to S3 storage              |\n\n## Backup\n\n```powershell\nubarec backup --help\n```\nTODO: Describe the backup algorithm, startup keys\n\n## Restore from backup\n\n```powershell\nubarec restore --help\n```\nTODO: Describe the restore algorithm, startup keys\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgbm%2Fubarec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgbm%2Fubarec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgbm%2Fubarec/lists"}