In my web development work, I use Ubuntu almost exclusively. But there are occasions where I need to boot up Windows -- to check a layout in IE, to reslice a comp in Photoshop -- and I want to be able to share my entire localhost environment between the two.
Here's my current workflow:
In Ubuntu:
- rsync the directory of the site I'm working on from
/var/www
to/windows/wamp/www
(where /windows is the mount location of my windows NTFS partition as set in fstab). - rsync the mysql database from
/var/lib/mysql
to/windows/wamp/bin/mysql/{mysql version}/data
.
Shut down, boot Windows, edit files, save, restart again. Back in Ubuntu, look for changed files and rsync back to /var/www
, ignoring the permissions changes that have happened when moving the files to the NTFS partition.
I don't like keeping two copies of my entire development environment, and I don't like having to manually sync them. Ideally I'd like to copy my entire /var/www folder into the Windows partition and symlink to it, and do the same thing for my databases. But the permissions changes that happen cause no end of headaches when doing that.
So my question is two-part, I guess:
- Is there any way of copying files from ext4 drive partitions to NTFS partitions that maintains the Unix permissions in a way that they can be synced back?
or,
- Is there a better way of sharing the entire localhost environment between Windows and Linux partitions?