{"id":15323895,"url":"https://github.com/StudyResearchProjects/scp-scorpion","last_synced_at":"2025-10-09T10:31:54.838Z","repository":{"id":104134146,"uuid":"202462837","full_name":"StudyResearchProjects/scp-scorpion","owner":"StudyResearchProjects","description":"🦂 Secure Copy Protocol (scp) script to automate transfer process","archived":true,"fork":false,"pushed_at":"2019-08-15T04:52:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-13T04:52:15.953Z","etag":null,"topics":["bash","file-transfer","python","scp"],"latest_commit_sha":null,"homepage":"","language":"Python","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/StudyResearchProjects.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-15T02:51:55.000Z","updated_at":"2025-05-22T22:48:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"8bd0082c-4934-407d-9a77-d17a075342d4","html_url":"https://github.com/StudyResearchProjects/scp-scorpion","commit_stats":null,"previous_names":["leoborai/scp-scorpion","valhallaban/scp-scorpion","estebanborai/scp-scorpion","studyresearchprojects/scp-scorpion"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StudyResearchProjects/scp-scorpion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Fscp-scorpion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Fscp-scorpion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Fscp-scorpion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Fscp-scorpion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StudyResearchProjects","download_url":"https://codeload.github.com/StudyResearchProjects/scp-scorpion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StudyResearchProjects%2Fscp-scorpion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001275,"owners_count":26083040,"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-10-09T02:00:07.460Z","response_time":59,"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":["bash","file-transfer","python","scp"],"created_at":"2024-10-01T09:23:10.817Z","updated_at":"2025-10-09T10:31:54.827Z","avatar_url":"https://github.com/StudyResearchProjects.png","language":"Python","readme":"# scorpion\n🦂 Secure Copy Protocol (scp) script to automate transfer process\n\nNamed after `scp` (Security Copy Protocol) bash command as **sc**or**p**ion, automate the sharing process using a config file.\n\nScorpion is a script that runs `ssh` and `scp` in order to accomplish the following tasks:\n\n1. Delete existing `target` directory.\n2. Create the previously removed directory.\n3. Copy contents from `origin` directory to `target` directory.\n\n`target` directory and `origin` directory are paths specified in a json file called `scorpion.json`.\n\nThe script logs every command and asks for `sudo` before executing it.\nThe following is a sample of the commands `scorpion` runs in order to accomplish its tasks.\n\n```bash\n[SCORPION]      ::      Running $ ssh admin@0.0.0.0 rmdir /www/website.com/\n# (asks for sudo)\n[SCORPION]      ::      Running $ ssh admin@0.0.0.0 mkdir -p /www/website.com/\n# (asks for sudo)\n[SCORPION]      ::      Running $ scp -r ./dist/* admin@0.0.0.0:/www/website.com/\n# (asks for sudo)\n```\n\n## Requirements\n- Python 3.7\n\n## Installation\nTo download `scorpion.py` script, run **cURL** from your project directory as follows:\n\n```bash\ncurl -L https://raw.githubusercontent.com/estebanborai/scp-scorpion/master/scorpion/scorpion.py \u003e\u003e scorpion.py\n```\n\n## Usage\nRun scorpion from you project root directory as follows:\n```bash\npython ./scorpion.py\n```\n\nIn order to run `scorpion`, a config file should be available in the context of the process.\nThe following is an example of a `scorpion.json`.\n```javascript\n{\n  \"user\": \"admin\", // The address user\n  \"address\": \"0.0.0.0\", // The address to copy files (IP)\n  \"origin\": \"./dist/*\", // The files to copy\n  \"target\": \"/www/website.com/\" // The target path of the files\n}\n```\nIf the `scorpion.json` file is not available, the user will be prompted in order to generate a new configuration file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStudyResearchProjects%2Fscp-scorpion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStudyResearchProjects%2Fscp-scorpion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStudyResearchProjects%2Fscp-scorpion/lists"}