Prepare to sync with server