{"id":48088068,"url":"https://github.com/tnoff/database-backup","last_synced_at":"2026-04-04T15:25:44.378Z","repository":{"id":248287854,"uuid":"828254714","full_name":"tnoff/database-backup","owner":"tnoff","description":"Database backup script for OCI","archived":false,"fork":false,"pushed_at":"2026-03-31T10:58:23.000Z","size":203,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T12:30:48.476Z","etag":null,"topics":["database-backup","docker","oci"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tnoff.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-13T15:21:08.000Z","updated_at":"2026-03-31T10:58:27.000Z","dependencies_parsed_at":"2024-07-13T18:31:20.775Z","dependency_job_id":"dc6909f1-1aba-43ca-89e6-d68b89469ea2","html_url":"https://github.com/tnoff/database-backup","commit_stats":null,"previous_names":["tnoff/discord-backup","tnoff/database-backup"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/tnoff/database-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fdatabase-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fdatabase-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fdatabase-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fdatabase-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tnoff","download_url":"https://codeload.github.com/tnoff/database-backup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tnoff%2Fdatabase-backup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["database-backup","docker","oci"],"created_at":"2026-04-04T15:25:44.115Z","updated_at":"2026-04-04T15:25:44.270Z","avatar_url":"https://github.com/tnoff.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database Backup\n\nRuns a simple `pg_dump` command and uploads to OCI object storage or S3 Object Storage\n\n## PG Version\n\nAssumes postgres version 16\n\n## Volumes\n\nAll backup file data written to `/opt/backup/files` if you want to keep it on a data volume for consistency.\n\nMount a `cron-env` file to the `/opt/backup/env` directory for all environment vars.\n\n## Environment Variables\n\nFor environment variables to be used in the cron job, place environment exports in a `/opt/backup/env/cron-env` file.\n\nRequires:\n\n- `BUCKET_NAME` - bucket in object storage\n- `DATABASE_USER` - database user to connect with\n- `DATABASE_HOST` - database host to connect to\n- `DATABASE_NAME` - name of database\n- `PGPASSWORD` - database password\n\n\n## Object Storage Types\n\nBy default the system will default to S3 Object Storage, to override to OCI object storage use:\n\n```\nexport STORAGE_BACKEND=\"oci\"\n```\n\n## OCI Setup\n\nIf you want to set oci config files or auth options, place them in the `/opt/backup/env/cron-env` file.\n\n## S3 Setup\n\nPlace the relevant environment exports in the `/opt/backup/env/cron-env` file, including:\n\n- `AWS_ENDPOINT_URL_S3`\n- `AWS_ACCESS_KEY_ID`\n- `AWS_SECRET_ACCESS_KEY`\n\n## Optional Args\n\nPass in `PGDUMP_ARGS` to allow additional args on the pgdump command.\n\nPass in `GZIP_ARGS` for additional args on the gzip command.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnoff%2Fdatabase-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftnoff%2Fdatabase-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftnoff%2Fdatabase-backup/lists"}