New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syncing local and remote #196
Comments
What's wrong with rsync? You can just create an action that executes the desired sync operation. |
Oh well ... indeed ! I guess it could work just fine 😂 Thanks for the suggestion ! |
And on that note, there seem to be some extensions available: Let me know if you try it out, and how well it works |
@egamma @kieferrm Yeah rsync would work fine for this scenario. macOS / Linux it is built in. For Windows there are a number of clients. The extension seems to support using cygwin or wsl to get the job done. The extension does not sync However, the "onSave" and watch functionality is geared towards pushing to the remote, not pulling from it. So you need to run Sync-Rsync: Sync Remote to Local manually each time you want to get the remote contents on your machine. For our use case, you'd want on save to pull from the remote, but clearly this use case didn't exist prior to the Remote-SSH extension. I was able to get it working using a workspace {
"remote.extensionKind": {
"vscode-ext.sync-rsync": "ui"
},
"sync-rsync.local": "/Users/chuck/Developer/projects/rsync-test/remote-containers-test",
"sync-rsync.remote": "parallels@docker-locker.local:/home/parallels/Repos/remote-containers-test",
"sync-rsync.delete": true,
"sync-rsync.include": ".vscode",
"sync-rsync.args": ["--rsh=ssh"]
} In terms of recommending it, the extension has no icon but was updated April 3rd, so it's being maintained. |
Rather than recommending this extension given it's current state, we documented how to use SSHFS and rsync to achieve this kind of thing from the command line for now. https://code.visualstudio.com/docs/remote/troubleshooting#_using-sshfs-to-access-files-on-your-remote-host |
I am after this feature as well. I currently use this script,
which is great. But trying to deploy this to other team members is a pain. Partly this pain is because my script is setup for my macOS machine with my servers. I didn't create a process doc on how to setup this script and install required programs for macOS. I have 0 idea how this script would be setup on Windows (I assume it probably works out of the box for Linux). Being sure devs have code in the system path. Etc etc. I had used sync-rsync before but there was a few things I didn't like about it. Having to open VSCode, open workspace, open commands thing, start remote sync*. Compared to my scripts solution of open terminal and execute ./site1_dev.sh. *I think I also had an issue where it wasn't watching the entire folder for changes so you'd have to manually sync after a git pull. Possibly a bug, possibly fixed. I'll be sure to have a try of this extension again and report back. EDIT: I also just found this extension which seems promising. https://marketplace.visualstudio.com/items?itemName=liximomo.sftp |
This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
it should be like in pycharm professional out of the box of the remote development feature |
The Remote - SSH extension is absolutely awesome and really convenient ! Thanks a lot for that !
I like to have my code store locally and use GitHub Desktop to manage the GIT versioning.
It would be awesome if the Remote - SSH extension could give the ability to sync a local folder to a remote folder !
It's maybe out of the scope of the extension though ; and I'll try the GitHub functionalities inside VS Code :)
Keep on the awesome work ! 👍 ❤️
(may be related to #168)
The text was updated successfully, but these errors were encountered: