{"id":29391553,"url":"https://github.com/ome/ansible-role-postgresql-backup","last_synced_at":"2025-07-10T09:34:31.314Z","repository":{"id":54984387,"uuid":"140420804","full_name":"ome/ansible-role-postgresql-backup","owner":"ome","description":"Backup PostgreSQL database servers","archived":false,"fork":false,"pushed_at":"2024-01-15T13:29:58.000Z","size":37,"stargazers_count":5,"open_issues_count":0,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-01T16:10:42.317Z","etag":null,"topics":["ansible","ansible-role","backup","database","ome","openmicroscopy","postgresql"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ome/postgresql_backup/","language":"Python","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/ome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-07-10T11:16:35.000Z","updated_at":"2024-12-27T21:56:23.000Z","dependencies_parsed_at":"2023-12-19T00:30:53.373Z","dependency_job_id":"5f52de48-52cb-4339-a339-dccf6de18664","html_url":"https://github.com/ome/ansible-role-postgresql-backup","commit_stats":{"total_commits":32,"total_committers":6,"mean_commits":5.333333333333333,"dds":0.6875,"last_synced_commit":"c2b79ff316c3f09c9082263fc5dfc4de0621c5a2"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ome/ansible-role-postgresql-backup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-postgresql-backup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-postgresql-backup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-postgresql-backup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-postgresql-backup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ome","download_url":"https://codeload.github.com/ome/ansible-role-postgresql-backup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ome%2Fansible-role-postgresql-backup/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263863431,"owners_count":23521583,"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":["ansible","ansible-role","backup","database","ome","openmicroscopy","postgresql"],"created_at":"2025-07-10T09:33:36.410Z","updated_at":"2025-07-10T09:34:31.309Z","avatar_url":"https://github.com/ome.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PostgreSQL Backup\n=================\n\n[![Actions Status](https://github.com/ome/ansible-role-postgresql-backup/workflows/Molecule/badge.svg)](https://github.com/ome/ansible-role-postgresql-backup/actions)\n[![Ansible Role](https://img.shields.io/badge/ansible--galaxy-postgresql_backup-blue.svg)](https://galaxy.ansible.com/ui/standalone/roles/ome/postgresql_backup/)\n\nSetup a cron job for regular full PostgreSQL database dumps.\n\nAssumes the local `postgres` has password-less access to all databases (this is the default when installing PostgreSQL server).\n\n\nDependencies\n------------\n\nThis requires a cron daemon to already be running.\nThis should be the default on most systems.\n\n\nRole Variables\n--------------\n\nRequired:\n- `postgresql_backup_dir`: Save backups in this directory\n\nOptional:\n- `postgresql_backup_filename_format`: A filename containing unix `date` format sequences, default `{{ ansible_hostname }}-%Y%m%d-%H%M%S.pgdump` (or `{{ ansible_hostname }}-%Y%m%d-%H%M%S.pgdump.gz` if `postgresql_backup_compress: true`).\n  This can be used to automatically overwrite backups on a rolling basis.\n- `postgresql_backup_frequency`: This must match one of the standard `/etc/cron.*` directories, typically either `daily` (default), `hourly`, `weekly` or `monthly`.\n- `postgresql_backup_minimum_expected_size`: The minimum size in bytes of the backup file.\n  The cron job will return an error if the file is smaller than this.\n- `postgresql_backup_compress`: If `true` compress the output using gzip, default `false`.\n\n\nExample playbook\n----------------\n\n    # This will name the backup file /nfs/backups/HOSTNAME-Mon.pgdump\n    # where Mon will be replaced by the abbreviated day of the week, resulting\n    # in daily backups on a rolling weekly cycle\n    - hosts: postgresql-servers\n      roles:\n      - role: ome.postgresql_backup\n        postgresql_backup_dir: /nfs/backups\n        postgresql_backup_filename_format: \"{{ ansible_hostname }}-%a.pgdump\"\n        postgresql_backup_minimum_expected_size: 100000\n\n\nAuthor Information\n------------------\n\nome-devel@lists.openmicroscopy.org.uk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-postgresql-backup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fome%2Fansible-role-postgresql-backup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fome%2Fansible-role-postgresql-backup/lists"}