Contribute
Register

Hackintosh <-> MBP data disk sync

Status
Not open for further replies.
Joined
Oct 26, 2011
Messages
13
Motherboard
OS X Maxericks
CPU
3,5 Ghz Intel Core i7
Graphics
AMD Radeon HD 6870 1024MB
Mac
  1. MacBook Pro
Classic Mac
  1. 0
Mobile Phone
  1. iOS
Hey Guys,

For mounds I'm reading this Forum, coming week it is my turn to start my first hackintosh build!
All the possible troubles with my build I've already researched, only one thing I can't find...

I buit my hackintosh to have a powerful desktop at home, and everyday to school I take my MBP
Off course I can't sync the system disk, but it would be great if I come home, sync the data disks to the one I used the latest and than continue working on the other mac.

On the Forum I couldn't find people with the same issue, does anybody have a solution?

Thx
 
It's a common problem.

In Terminal, try `man rsync` to learn about the command-line tool to synchronise from one source to a destination. You can write simple shell wrappers to encode your favourite arguments.
However it doesn't directly support fancy two-way syncing, although if you were brave you could do two syncs, one in each direction just copying newer files. But then deleting files could become a problem.

If you're able to decide which disk is the "master" copy, then `rsync -av --delete SOURCE DEST` will (for appropriate values of SOURCE and DEST) make DEST look like SOURCE, ignoring all the unchanged data. But there are many options and you should tread carefully before accidentally removing all your files. o_O

Then there's the issue of which data are you going to copy? Presumably not the system, as you have different machines. Applications are also hard. Not just the programs, but the data too. Configurations/preferences are stored separately from the data, and if you copy the whole Library tree you'll probably break some other program.
If you have a folder (e.g. "data") under your home folder you could use rsync to copy from one to another. Take for example MACHINE1 and MACHINE2, with "Remote login" enabled under Sharing in System Preferences. On MACHINE1, you could type
Code:
rsync -av --delete ~/data/ MACHINE2.local:data/
to copy from MACHINE1 to MACHINE2, or
Code:
rsync -av --delete MACHINE2.local:data/ ~/data/
to copy in the other direction.

Obviously this benefits from a fast LAN connection if you've changed a lot of data. But rsync is designed to be efficient and not copy stuff it doesn't have to. Note that specifying a simple unique name for each machine in the Sharing pane of System Preferences allows you to refer to NAME.local instead of having to use the IP address that machine happens to be using at the time. "Pieter's MacBook Pro.local" is hard to type, and the punctuation and whitespace don't help either. Go for short and simple names.

Or you could mount the disk of one on the other via file sharing, and use the relevant volume names in the rsync command (without using the colon which specifies remote login). Anyway, like I said there are lots of options.... and be careful!


Then there's another possible solution: store your files on an external disk and just take the disk with you to the other system. :) There is the performance trade-off of using a slower disk, but it's conceptually very simple. We get students to do this with their Lightroom/Photoshop/etc files and it works great (as long as you tell Lightroom to store its database on the external drive too).

If you want to synchronise an external disk and files on an internal disk you can use rsync as above just use different SOURCE/DEST syntax (this can be faster than some network connections). It even works if one of the disks is FAT32 (although I find I need to add the rsync argument `--modify-window=1` to cope with the limited accuracy of FAT32 timestamps) so you can share between OS X and Windows machines.

If you have plenty of network connectivity and enough space in your Dropbox account you could put your files there. Or another cloud service.

Instead of rsync, there are commercial file-synchronisation tools with GUI interfaces (ChronoSync springs to mind as one example).

Managing more-complex situations such as iTunes libraries across multiple machines (one of which is mobile and has limited disk space) is something I'm working on over the coming month, as I'm in the process of transitioning from a single 15" MBP as main machine to a split laptop (eventually the MBP will become either an MBA or a 13" rMBP) plus monster-workstation configuration.
Mail can refer to the same IMAP server, although if you move messages to local folders you can only access them on one machine.


It's a big topic! What do other dual-machine folks do about it?
 
Wouw, that's some answer!
Thanks a lot for all the effort you put in already!

I was hoping to have a little tweak on timemachine would do the job, but I found out that time machine isn't capable of that, also timemachine isn't very smart to copy only the stuff you used the latest..

There are indeed some programs but they are a bit expensive, why don't build them ourselves..
Since I have to do it like twice a day, Hackintosh -> MBP when I go to school and MBP -> Hackintosh when I come home..
So a little button with start transfer would be nice.
I noticed that my ftp program Filezilla also knows the option to transfer only edited data, I'm going to check that one out to.

The awnser you have is more complex than I was hoping for, never used terminal for such big things only for little stupid things like show the libary and stuff :p I'm always amazed how people can really work with command-lines, where do you guys learn that stuff? I think I just have to start with it..
Maybe it is an option to use automator to make the process more quick and easy.. but never used automator really so lots of stuff to check out..

I'm quite a fan of syncing all the stuff with iCloud, 3th-party apps also use it now, I don't think that there is a physical copy of the date on iCloud.. Can we use iCloud maybe, or even better, get our own sync data disk in the cloud?

First start my build this week, hopefully I have time for this coming weekend!
 
Status
Not open for further replies.
Back
Top