How Data Sync process works in Mobile local database with server database?

Suppose I have table at local database as well as server db.
If local db has 500 records

but server has 550 records.

some records are new, updated or deleted at server

I want to sync the local storage to server db and want fresh copy of server db.

Will I get the whole records like 550 again or only updated/new/deleted ?

I mean how the sync works ..help me to provide the steps for sync process