How to Force Mac OS X Sync & Backup

Sometimes you need to have changes in your contact book immediately synced with Google. Mac OS X offers an extra menubar icon to trigger synchronization. If you however prefer to keep your menubar tidy, you probably don’t want another icon there, and you don’t need to! It’s really easy, paste the following command into your Terminal.app and Mac OS X will start to sync your contacts with Google:

$ /System/Library/PrivateFrameworks/GoogleContactSync.framework/Versions/A/Resources/gconsync --sync com.google.ContactSync

The same is possible with Time Machine backups! Get rid of the menubar icon and force the backup with the following command:

$ /System/Library/CoreServices/backupd.bundle/Contents/Resources/backupd-helper

Additional you could configure a cronjob to automate the complete workflow.