Methods for backing up and restoring data on the Salesforce Lightning Platform
Before we jump into methods for backing up and restoring data, let’s elaborate on the two data definitions we’re covering in this chapter, namely data and metadata, as both are interacted with differently when it comes to backup and restoration. Let’s start with metadata.
Introduction to metadata
Metadata is data that describes data. When we think of an eXtensible Markup Language (XML) file, that essentially is a file with data (the values) and metadata (the tags). For example, see the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<person>
<firstname>Aaron</firstname>
<lastname>Allport</lastname>
</person>
The code example shows a simple XML structure for a person with a first name and last name. Here, we can use the metadata (the person and the...