{"id":26597012,"url":"https://github.com/lengyijun/smartscp","last_synced_at":"2025-03-23T17:31:25.304Z","repository":{"id":159601584,"uuid":"634730837","full_name":"lengyijun/smartscp","owner":"lengyijun","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-12T01:30:39.000Z","size":92,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"sshfs","last_synced_at":"2024-05-07T08:33:28.027Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lengyijun.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-01T03:13:09.000Z","updated_at":"2024-03-12T01:33:02.000Z","dependencies_parsed_at":"2024-03-12T02:40:19.231Z","dependency_job_id":null,"html_url":"https://github.com/lengyijun/smartscp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Fsmartscp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Fsmartscp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Fsmartscp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lengyijun%2Fsmartscp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lengyijun","download_url":"https://codeload.github.com/lengyijun/smartscp/tar.gz/refs/heads/sshfs","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245140645,"owners_count":20567416,"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":"2025-03-23T17:30:33.067Z","updated_at":"2025-03-23T17:31:25.186Z","avatar_url":"https://github.com/lengyijun.png","language":"Rust","funding_links":[],"categories":["\u003ca name=\"transfer\"\u003e\u003c/a\u003eData transfer"],"sub_categories":[],"readme":"# Smartscp\n\nA replacement of scp, but auto skip git-ignored files\n\nIt's just a wrapper of sshfs and [xcp](https://github.com/tarka/xcp)\n\n## Install\n```\ncargo install --git https://github.com/lengyijun/smartscp --branch sshfs\n```\n\n## Usage\n```\nsmartscp remote-host:path local_path\nsmartscp local_path remote-host\nsmartscp local_path remote-host:remote-path\n```\n\n## Feature\n1. respect git ignore \n\ngit-ignored files will not be scped\n\n2. auto fill-in the remote path\n```\n# auto complete the destination: `remote_host:~/.local/share`\nsmartscp ~/.local/share remote_host\n```\n\n3. no `-r` needed in transferring folder\n\n4. support interactive password input, but not recommanded\n\n## Not supported yet\n1. filename contains \":\"\n\n## Notice\nNot compatible with scp\nNot compatible with the same parameters as SCP\n\n## Q\u0026A\n### Q: why not use `rsync --exclude=`\nA: rsync doesn't support complicated exclude rules\n\n### Q: why not rewrite scp from bottom up ?\nA: It's not a trival work\n\n### Q: why transfer failed ?\nA: remote readonly files exists\n\n## Reference\n[Why scp is bad and difference between scp and sftp](https://goteleport.com/blog/scp-familiar-simple-insecure-slow/#alternatives-to-scp)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengyijun%2Fsmartscp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flengyijun%2Fsmartscp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flengyijun%2Fsmartscp/lists"}