{"id":21423176,"url":"https://github.com/tecno-consultores/comparar-db-docker","last_synced_at":"2026-04-12T18:58:36.208Z","repository":{"id":267808430,"uuid":"901462124","full_name":"tecno-consultores/comparar-db-docker","owner":"tecno-consultores","description":"Script para copiar, comparar o  respaldar el contenido de bases de datos postgresql","archived":false,"fork":false,"pushed_at":"2025-02-06T01:14:05.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T02:28:56.287Z","etag":null,"topics":["docker-image","postgresql","scripts","tools"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/sinfallas/comparar-db-docker","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tecno-consultores.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-10T17:46:09.000Z","updated_at":"2025-02-06T01:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"59c59da1-df9a-4c20-af05-07aabb2cab2e","html_url":"https://github.com/tecno-consultores/comparar-db-docker","commit_stats":null,"previous_names":["tecno-consultores/comparar-db-docker"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecno-consultores%2Fcomparar-db-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecno-consultores%2Fcomparar-db-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecno-consultores%2Fcomparar-db-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tecno-consultores%2Fcomparar-db-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tecno-consultores","download_url":"https://codeload.github.com/tecno-consultores/comparar-db-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926629,"owners_count":20370012,"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":["docker-image","postgresql","scripts","tools"],"created_at":"2024-11-22T21:14:42.162Z","updated_at":"2025-10-30T09:33:56.512Z","avatar_url":"https://github.com/tecno-consultores.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# comparar-db-docker\n\nScript para copiar, comparar o  respaldar el contenido de bases de datos postgresql\n\n\nvariables de entorno:\n\n* IP1=128.66.0.1\n* PORT1=5432\n* IP2=128.66.0.2\n* PORT2=5432\n* DBNAME=dbexample\n* USER1=admin\n* PASS1=123456\n* USER2=admin\n* PASS2=123456\n* MAILUSER=admin@mail.com\n* MAILPASS=123456\n* MAILSERVER=smtp.mail.com\n* MAILPORT=456\n* MAILFROM=admin@mail.com\n* MAILTO=client@mail.com\n\n# comparardb\n```bash\ndocker run -it --rm --name comparardb --pull always -e IP1=128.66.0.1 -e PORT1=5432 -e IP2=128.66.0.2 -e PORT2=5432 -e DBNAME=dbexample -e USER1=admin -e PASS1=123456 -e USER2=admin -e PASS2=123456 sinfallas/comparar-db-docker:TAG comparardb\n```\n\n# copiardb\n```bash\ndocker run -it --rm --name copiardb --pull always -e IP1=128.66.0.1 -e PORT1=5432 -e IP2=128.66.0.2 -e PORT2=5432 -e DBNAME=dbexample -e USER1=admin -e PASS1=123456 -e USER2=admin -e PASS2=123456 sinfallas/comparar-db-docker:TAG copiardb\n```\n\n# respaldar\nPrimero colocar la informacion necesaria para el accesos a las bases de datos en el archivo lista.txt, luego monte como un volumen en /app la carpeta que contiene dicho archivo.\n```bash\ndocker run -it --rm --name backupdb --pull always --volume ./:/app sinfallas/comparar-db-docker:TAG backupdb\n```\n\nGet this image on:\n* https://hub.docker.com/repository/docker/sinfallas/comparar-db-docker\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecno-consultores%2Fcomparar-db-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftecno-consultores%2Fcomparar-db-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftecno-consultores%2Fcomparar-db-docker/lists"}