{"id":20820885,"url":"https://github.com/webdad/env-copy","last_synced_at":"2025-07-01T12:04:11.408Z","repository":{"id":152505354,"uuid":"126963010","full_name":"WebDaD/env-copy","owner":"WebDaD","description":"Copy Databases, Files, Folder from different enviroments at an ease.","archived":false,"fork":false,"pushed_at":"2018-03-27T09:34:45.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T10:40:27.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebDaD.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,"publiccode":null,"codemeta":null}},"created_at":"2018-03-27T09:33:00.000Z","updated_at":"2018-03-27T09:34:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"b1b294f5-884c-4a89-bb08-c37ce45a8c88","html_url":"https://github.com/WebDaD/env-copy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WebDaD/env-copy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDaD%2Fenv-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDaD%2Fenv-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDaD%2Fenv-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDaD%2Fenv-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebDaD","download_url":"https://codeload.github.com/WebDaD/env-copy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebDaD%2Fenv-copy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262959562,"owners_count":23391057,"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":[],"created_at":"2024-11-17T22:10:36.803Z","updated_at":"2025-07-01T12:04:11.374Z","avatar_url":"https://github.com/WebDaD.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enviroment Copy Script\n\nCopy Databases, Files, Folder from different enviroments at an ease.\nGreat to Deploy stuff or get data for testing.\nIt sports an easy natural language syntax for error safety (copy test database to live system?...)\n\n## Installation\n\n`npm install env-copy -g`\n\n## Usage\n\necopy all from live to staging\necopy database-structure from staging to live\necopy config from test to staging\n\nIts really just:\n\n* ecopy\n* artifact to copy (defined in config) OR all\n* from\n* sending enviroment (config)\n* to\n* receiving enviroment (config)\n\n## Config\n\nJust edit /etc/envcopy.json\n\n### Artifacts\n\nArtifacts define the names for stuff to copy.\nThere are 4 types right now:\n\n* mysql \u003e Fully copy a database\n* mysql-structure \u003e only copy the structure, try to keep data\n* file \u003e a single file\n* folder \u003e A folder\n\nThe Enviroments define details\n\n### Enviroments\n\nAn Enviroment is a container of settings for the defined resources.\n\n### Example\n\n```json\n{\n  \"cli\": {\n    \"tmp\":\"/tmp/\"\n  },\n  \"artifacts\": {\n    \"database\": \"mysql\",\n    \"config\": \"file\",\n    \"database-structure\":\"mysql-structure\",\n    \"images\":\"folder\"\n  },\n  \"enviroments\": {\n    \"live\": {\n      \"writable\":false,\n      \"artifacts\": {\n        \"database\": {\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\",\n          \"name\":\"\"\n        },\n        \"database-structure\":\"database\",\n        \"config\": {\n          \"file\":\"/opt/mynode/config.json\",\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\"\n        },\n        \"images\":{\n          \"folder\":\"/var/data/myimages/\",\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\"\n        }\n      }\n    },\n    \"staging\": {\n      \"writable\":true,\n      \"artifacts\": {\n        \"database\": {\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\",\n          \"name\":\"\"\n        },\n        \"database-structure\":\"database\",\n        \"config\": {\n          \"file\":\"/opt/mynode/config.json\",\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\"\n        },\n        \"images\":{\n          \"folder\":\"/var/data/myimages/\",\n          \"server\":\"\",\n          \"user\":\"\",\n          \"password\":\"\"\n        }\n      }\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdad%2Fenv-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdad%2Fenv-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdad%2Fenv-copy/lists"}