The thing is that, our codebase is located on a remote server, that, we access it through a VPN with putty. The server is in CentOs. I was wondering if its possible to softlink or hardlink this folder so that I can access it like a regular directory within windows.

I dont want to be pushing and pulling stuff from the server every time I want to test something, and I need more than the available tools from the centos command line.

  • 1
    Why not using local VMs? Sounds like a terrible way to do development. – EEAA Apr 11 '14 at 18:19
  • Are you using rsync? If not, give it a try. Unless you have a horribly slow connection, it should sync in less than a second. If you do have a horribly slow connection, the "hard link" you seek won't make things any easier on you. – EEAA Apr 11 '14 at 18:21
  • you have to run rsync every time you want changes to be reflected – Michael Martinez Apr 11 '14 at 18:35
  • I agree that its a terrible way to work. I will propose a new approach for the project, but, it is what it is today. – user3524668 Apr 11 '14 at 18:51

The issue here is the VPN. If you always leave the VPN open, then theoretically you can export the remote filesystem in a format your local Windows host can understand. In this case, you would mount it under your local filesystem and symlink it as you see fit. For this you would use Samba.

The other option is to place the codebase under some repository control such as Git or Subversion, and then use a git or subversion client on Windows to access it. Here again, you would need the VPN to be open all the time, or at least those periods where you need access.

Apart from that, you don't have any other choice than to "push and pull" the code every time you need it.

  • +1 Was just going to off up the source control option also – squillman Apr 11 '14 at 18:51
  • I will go with Samba and try to set it up. The project is already on versioning system, but I dont want to clutter the log with tons of debugging commits. – user3524668 Apr 11 '14 at 18:54
  • so you want to edit the master codebase directly, bypassing the versioning? that doesn't sound good – Michael Martinez Apr 11 '14 at 18:57
  • No, the code that I will be editing is the one on my own repo, the thing is that the code is on a remote server (dont ask, I know it sucks, but, thats the environment Im stuck with on this project). I just want to be able to use the code as if it were on my machine, so I can use an IDE, and do my work there, and, once Im done with it just commit my changes (this will be done through ssh or maybe some GUI Tool). – user3524668 May 12 '14 at 22:16

You can use the simple SCP client, WinSCP or install SAMBA on CentOS and access the Linux file system from Windows.

  • across a vpn? no. this will only work if the vpn is always left open – Michael Martinez Apr 11 '14 at 18:35
  • Yes. Sorry my mistake. – tasmanian_devil Apr 11 '14 at 18:46

Maybe you can use SVN over HTTPS ?

  • 1
    More detail would improve your answer. – Dave M Apr 11 '14 at 21:02

Not the answer you're looking for? Browse other questions tagged or ask your own question.