Generating Backup Export Scripts

Veeam Data Cloud for Salesforce allows you to migrate your existing backup data from a Veeam Backup for Salesforce installation to cloud storage. To do this, you generate a script that exports the backup data to cloud storage, and then you import the exported data into Veeam Data Cloud for Salesforce using the Data Import feature.

The generated script uses the vbsf-export utility to export data from Veeam Backup for Salesforce to an Amazon S3 bucket or Microsoft Azure Blob container. For details, see this Veeam KB article.

To generate a backup export script:

  1. On the Salesforce page, click the name of the tenant you want to manage.
  2. Select Policies on the left.
  3. Make sure the Backup Policy tab is selected.
  4. Click Actions and select Data Export Script. The Generate Script for Data Export wizard opens.
  1. At the Initial Instructions step of the wizard, review the preparation steps that must be completed before you run the export:
  • Provision cloud storage in AWS or Microsoft Azure and make sure you have the required access credentials.
  • Download and install the vbsf-export utility on the same server where Veeam Backup for Salesforce is installed. Make sure the backup database and the target cloud storage are reachable from this host.
  • Pause all data archival policies and run a fresh backup to capture the latest state before exporting.

For detailed preparation instructions, see this Veeam KB article.

  1. At the Connections step of the wizard, provide the connection details for the backup database and the target cloud storage:
  1. In the Database connection section, in the Host field, specify the host name or IP address of the server that hosts the backup database.
  2. In the Port field, specify the port used to connect to the database. The default value is 5432.
  3. In the Database field, specify the name of the backup database.
  4. In the Login field, specify the user name used to connect to the database.
  5. In the Password field, specify the password of the specified user.
  6. In the External storage connection section, from the Cloud Provider drop-down list, select the cloud storage connection to which you want to export the data.

For details on how to add a cloud provider, see Configuring Object Storage Connections.

  1. In the Path field, specify the path to the target location in the cloud storage.
  1. At the Options step of the wizard, adjust the size of the created files and set the path for the log output:
  1. In the Split file by section, choose how to split the export files. Select Number of Records to split files by the maximum number of records per file (the default value is 500000), or select File Size (Mb) to split files by the maximum file size in megabytes (the default value is 30).
  2. In the Logs Output Path field, specify the path where the export logs will be saved.
  1. At the Script step of the wizard, copy the generated script:
  1. Review the generated script. The script starts the data export from Veeam Backup for Salesforce to the cloud storage using the vbsf-export utility.
  2. Click Copy to Clipboard to copy the script.
  3. Click Finish to close the wizard.

Run the copied script on the server where Veeam Backup for Salesforce is installed to start the export. After the export completes, the backup data is available in your cloud storage, and you can import it into Veeam Data Cloud for Salesforce.