views:

23

answers:

2

I have a thumb drive (memory stick, flash drive, etc.) on which I use for my projects when I am away from my home PC. Currently I am accessing my Eclipse project directly from my thumb drive when connected to my PC.

I would like to copy my files to the PC, develop on the PC, then "synchronize" with the thumb drive (update files on the thumb drive). I also need the reverse process too: synchronize thumb drive files with files on PC.

I have looked at the FileSync plugin, but it specifically says it is one-way.

How can I synchronize my Eclipse project both directions (PC to thumb drive and thumb drive to PC) on demand (I don't need this done automagically)?

+1  A: 
  1. Use a DVCS (git, hg), make sure to sync repositories when you're changing your work location. This will even let you work on the same file in multiple places and merge the result.
  2. Use Unison
Yann Ramin
Although this is the proper process, I'm cautious about using `git` after using professional CMS systems like PVCS and ClearCase. I like systems that are robust and allow labels.
Thomas Matthews
@Thomas Matthews: Considering git is used successfully for very large and very active code bases, robustness is not a problem. And git goes well beyond just supporting tags.
Yann Ramin
+1  A: 

I'm assuming you're using Windows, so how about Sync Butler? Syncs the chosen folders automatically when the flash drive is plugged in.

Riddari
+1 I like Sync Butler, it's prettier than the utility I wrote. However, Sync Butler does not have the option to exclude directories, such as those containing object files (which are usually platform dependent).
Thomas Matthews