{"id":29161255,"url":"https://github.com/codemeapixel/mongo-2-postgres","last_synced_at":"2025-08-10T04:40:11.029Z","repository":{"id":106962429,"uuid":"498493471","full_name":"CodeMeAPixel/Mongo-2-Postgres","owner":"CodeMeAPixel","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-31T20:49:22.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-10T03:56:08.445Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/CodeMeAPixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"publiccode":null,"codemeta":null},"funding":{"github":"InfinityBotList","patreon":"infinitybots","custom":"infinitybots.gg"}},"created_at":"2022-05-31T20:49:20.000Z","updated_at":"2022-05-31T20:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"daf43797-c1ba-4f7c-a6ed-4137dd049287","html_url":"https://github.com/CodeMeAPixel/Mongo-2-Postgres","commit_stats":null,"previous_names":["codemeapixel/mongo-2-postgres"],"tags_count":0,"template":false,"template_full_name":"InfinityEOL/Mongo-2-Postgres","purl":"pkg:github/CodeMeAPixel/Mongo-2-Postgres","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FMongo-2-Postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FMongo-2-Postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FMongo-2-Postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FMongo-2-Postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeMeAPixel","download_url":"https://codeload.github.com/CodeMeAPixel/Mongo-2-Postgres/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeMeAPixel%2FMongo-2-Postgres/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269677505,"owners_count":24457857,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-01T03:09:49.054Z","updated_at":"2025-08-10T04:40:11.001Z","avatar_url":"https://github.com/CodeMeAPixel.png","language":"Go","readme":"\u003ch2 align='center'\u003e\n  \u003cimg src=\"https://media.discordapp.net/attachments/653733403841134600/981292240137769001/IMG_5344.png\" height='100px' width='100px' /\u003e\n  \u003cbr\u003e \n  Mongo to PostgreSQL\n\u003c/h2\u003e\n\u003cp align=\"center\"\u003e\n   Simple cli used to backup and migrate data from Mongoose to Postgres on a Rotating/Rolling basis.\n\u003c/p\u003e\n\n[![Version](https://img.shields.io/badge/Version-1.0.1%20-green.svg?style=flat)](https://github.com/InfinityBotList/Mongo-2-Postgres) \n[![Made with](https://img.shields.io/badge/Language-GO%20-blue.svg?style=flat)](https://github.com/InfinityBotList/Mongo-2-Postgres) \n[![License Type](https://img.shields.io/badge/License-MIT-yellowgreen.svg)](https://github.com/InfinityBotList/Mongo-2-Postgres)\n\n--- \n\n## Setup\n• Check back soon!\n\n---\n\n## Usage\n\n| Command      | Description                                                   | Example                                        |\n| ------------ | ------------------------------------------------------------- | ---------------------------------------------- |\n| `help `      | List available commands and their usage                       | `./db-backup-tool --help`                      |\n| `act`        | Specify an action to perform (backup/watch)                   | `./db-backup-tool --act watch`                 |\n| `backup-db`  | Specify the Postgres Connection String.                       | `./db-backup-tool --backup-db POSTGRES_URL`    |\n| `conn`       | Specify the Mongoose Connection String.                       | `./db-backup-tool --conn MONGO_URL`            |\n| `dbname`     | Specify the Mongoose Database Name.                           | `./db-backup-tool --dbname MONGO_NAME`         |\n| `interval`   | Interval for watcher to wait for (default 60 mins).           | `./db-backup-tool --interval SOME_INT`         |\n\n---\n\n## Example Watch Output\n\n```\nDBTool: init\nDBTool: Connecting to mongodb://127.0.0.1:27017/infinity\nConnected to mongoDB?\nCollections in DB:  [packages staff_apps dev_apps users reviews transcripts sessions tickets oauths suggests bots votes]\nDBTool: Connected to mongo successfully\nBacking up packages\nBacking up staff_apps\nBacking up dev_apps\nBacking up users\nBacking up reviews\nBacking up transcripts\nIgnoring sessions as it is in ignoredCols\nBacking up tickets\nBacking up oauths\nBacking up suggests\nBacking up bots\nBacking up votes\nWaiting for next backup rotation\n```\n\n## Contributors\n\u003ca href=\"https://github.com/InfinityBotList/Mongo-2-Postgres/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=InfinityBotList/Mongo-2-Postgres\" /\u003e\n\u003c/a\u003e\n","funding_links":["https://github.com/sponsors/InfinityBotList","https://patreon.com/infinitybots","infinitybots.gg"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fmongo-2-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemeapixel%2Fmongo-2-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemeapixel%2Fmongo-2-postgres/lists"}