When performing an upsert you can avoid duplicates by matching on either the Salesforce ID or custom External ID type field. If your performing an upsert, or update using dataloader.io, you must map a column to the Salesforce ID or an external ID.
Using dataloader.io, the ~ steps:
Import your parent Account records.
- Select the Import option
- Select the import operation type – upsert.
- Select the object you wish to import data into Account.
- Verify Mapping Between Fields
- Click Next Upload the CSV file you wish to import by
clicking the Upload CSV button.
Import your child Contact records, ensure the Account field contain the name of your Accounts.
- Select the Import option
- Select the import operation type – upsert.
- Select the object you wish to import data into Contact.
- Verify Mapping Between Fields
- You'll need to Lookup the Account Ids you've just imported, on the mapping file, select your Account field, and choose the "Lookup via Account" Account Name.
- Click Next Upload the CSV file you wish to import by
clicking the Upload CSV button.
Note, because you are upserting from an export ensure your upsert files do not contain any system fields.
Good Luck.