Rsync to sync Laptop and Desktop

Hi!

I'm thinking of making my next desktop build a hackintosh. I already own a Macbook Pro so I would "migrate" the contents to the hackintosh when I have it.

To keep things more or less automatically synced, I was thinking of making a Cron job with a bash script that basically checks if my laptop is in my home network and then runs rsync over some folders like documents, desktop etc.

Now my question is if it would be possible (or advisable) to rsync things like the browser history, mail, etc. (so the script basically quits the browser and mail on the laptop and hackintosh, copies over the corresponding library files to the hackintosh and restarts the browser and mail there. If it's a bad idea I'd leave stuff on the mail server and use iCloud for the browser stuff, but I think things like browser history won't copy over?

Does anyone have experiences with something like that?

Cheers, Alex

You can make bash script to run apple script that will handle quiting browsers, apps etc
Maybe you can do something like killall google-chrome or whatever the app is or kill -9 google-chrome
And than wait for few seconds for process to be killed.
I hope it helps