Restoring Salesforce Data to Salesforce

Updated

You can restore to the Salesforce cloud.

Note: If you changed data during the full backup, then you might need to restore additional incremental jobs so that you minimize data inconsistencies.

If your Salesforce environment has the Persons Account feature, then make sure that you select the Account Object when you want to restore the Person account records. You must make this selection even when you have deleted the account record from the contacts. For more information about the person account feature, go to the Salesforce help site, Person Accounts.

Tip: To avoid errors or for faster results, disable the validation rules, Apex triggers, and workflows. For the same benefits for managed packages, uninstall the packages. (Managed packages cannot be disabled using APIs.)

Before You Begin

  • Verify that the Salesforce user who performs the restores has the required permissions.

  • In Salesforce, create a destination Sandbox that contains the same metadata as your source organization. The Commvault software does not restore metadata as part of a Sandbox restore.

    For information about creating sandboxes, go to the Salesforce help site, Create a Sandbox.

  • Add an app for the destination organization.

  • Review the objects that are not supported for restores.

  • Verify that you have enough free space (it must be the size of the data that you want to restore):

    • If you restore from media, then the free space must be available on the staging database.

    • If you restore from the database, then the free space must be available on the catalog database.

    • You must have enough data and file storage space on your destination Salesforce environment.

  • Verify that the destination profile, users (communityNickName), and RecordType match the source profile, users (communityNickName), and RecordType.

  • Verify that the objects exist on the destination organization.

  • If you want to mask sensitive data during the restore, configure data-masking policies. For more information, see Data Masking.

  • Verify that you have the following database information:

    • The type of database

    • The client that hosts the database. The access node is able to connect to the database instance using JDBC URL.

    • The database name

    • The credentials for a user who meets the following criteria:

      • Microsoft SQL Server: Owner permissions and if the database does not exist, has the dbcreator role

      • PostgreSQL: Super user permissions

Procedure

  1. From the navigation pane, go to Protect > Applications > Salesforce.

    The Salesforce page appears.

  2. Click the action button , and then click Restore.

    The Select restore type page appears.

  3. Select Object level restore.

    The Backup content page appears.

  4. Optional: To select a backup, from the Showing latest backup list, select one of the following options:

    • To show the latest backup, select Show Latest Backup.

    • To show a backup at a specific time, select Show backup as a of a specific date, and then type the date and time.

    • To show backups for a date range, select Show backup for a date range, and then specify the dates.

  5. Select the data that you want to restore:

    • To restore files, select the check box next to Files.

    • To restore objects, select the check box next to Objects.

    • To restore both files and objects, select both check boxes.

  6. Click Restore.

    The Salesforce restore options dialog box appears.

  7. Next to Restore target, select Salesforce.

  8. Under Destination details, from the Destination organization list, select the Salesforce destination.

  9. Under Options, set the restore options:

    • To include parent objects in the restore, from the Parent objects to restore list, select All parents.

      Important: Including parent objects has the following effects:

      • Data integrity is maintained. If parent objects are included and some parents do not exist or some parents have incorrect values, restore operations will complete.

      • When objects such as User objects are updated, end users will receive notifications, which may not be desirable.

    • To include child objects in the restore, from the Child objects to restore list, select the child objects.

      • To exclude some child objects, select the Exclude children check box, and then in the Children to exclude box, select the child objects that you want to exclude.

    • To disable the Salesforce triggers and rules, select the Disable triggers and rules check box.

      After the restore is complete, the workflows and triggers are automatically enabled.

    • To apply data masking, select the Apply masking on destination check box, and then from the Select data masking policy list, select the data-masking policy.

      Note: Data masking can be applied when a cross-instance restore is run and data masking policies are defined.

  10. Click Submit.