use rsync to sync files from local to sftp server.
- 🚀 use rsync, fast! fast! fast !
- 🎈 use sftp.json project config file, easy to use!
- 💫 support windows cygwin ssh & rsync!
- Ensure that you have installed the
rsyncandsshcommands, and make sure your target server supports SSH key-based authentication. - Search and install
sftp-rsync-fastin the application store.
You can use remote to tell sftp to get the configuration from vscode-remote-fs.
In User Setting:
"remotefs.remote": {
"dev": {
"scheme": "sftp",
"host": "host",
"username": "username",
"rootPath": "/path/to/somewhere"
},
"projectX": {
"scheme": "sftp",
"host": "host",
"username": "username",
"privateKeyPath": "/Users/xx/.ssh/id_rsa",
"rootPath": "/home/foo/some/projectx"
}
}In project .vscode/sftp.json:
{
"remote": "dev",
"remotePath": "/home/xx/",
"uploadOnSave": false,
"ignore": [".vscode", ".git", ".DS_Store"]
}To upload the entire project, use:
- Press
Ctrl+Shift+P, then typersync upload project
SFTP is fast for transferring single files, while rsync is fast for transferring large amounts of files. For an enhanced experience, configure the Natizyskunk.sftp extension to work together.
- Upload on save
- Upload specific files or directories
- Upload the entire project
- Natizyskunk.sftp https://github.com/Natizyskunk/vscode-sftp
- vscode-remote-fs https://github.com/liximomo/vscode-remote-fs
- TONGYI Lingma https://lingma.aliyun.com/