# US 2025/0094620 A1 · Managing encryption data for system replication of database systems

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0094620 A1
- Document ID: US20250094620A1
- Status: Published application
- Kind: A1
- Application number: 18/468,570
- Filed: 2023-09-15
- Published: 2025-03-20
- Earliest claimed: 2023-09-15
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Dirk Thomsen; Christoph Roterring; Martin Schindewolf
- Web page: https://patentgrep.com/patent/US20250094620A1

## CPC

- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F 11/1448: {Management of the data involved in backup or backup restore}
- G06F 11/1464: {for networked environments}
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 11/2097: {maintaining the standby controller/processing unit updated (initialisation or re-synchronisation thereof G06F11/1658 and subgroups)}
- G06F 21/602: {Providing cryptographic facilities or services}
- G06F 2201/80: Database-specific techniques
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some embodiments provide a non-transitory machine-readable medium that stores a program. The program takes a first snapshot of a first set of data stores configured to store data associated with a database system. After taking the first snapshot of the first set of data stores, the program further takes a second snapshot of a second set of data stores configured to store a set of encryption keys for a set of tenants of the database system. The program also transmits data included in the first snapshot of the first set of data stores to a secondary system. The program further transmits data included in the second snapshot of the second set of data stores to the secondary system.

## Claims

### Claim 1

A non-transitory machine-readable medium storing a program executable by at least one processing unit of a primary system, the program comprising sets of instructions for:
taking a first snapshot of a first set of data stores configured to store data associated with a database system;
after taking the first snapshot of the first set of data stores, taking a second snapshot of a second set of data stores configured to store a set of encryption keys for a set of tenants of the database system;
transmitting data included in the first snapshot of the first set of data stores to a secondary system; and
transmitting data included in the second snapshot of the second set of data stores to the secondary system.

### Claim 2 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the secondary system is configured to replicate a state of the primary system based on the data included in the first snapshot of the first set of data stores and the data included in the second snapshot of the second set of data stores.

### Claim 3 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the program further comprises a set of instructions for:
generating log data comprising changes to the database system since a last system save point;
determining a set of encryption keys to use to encrypt the log data;
encrypting the log data with the set of encryption keys;
storing the encrypted log data in a first log data store; and
transmitting the encrypted log data to the secondary system, wherein the secondary system is configured to store the encrypted log data in a second log data store.

### Claim 4 (depends on 3)

The non-transitory machine-readable medium of claim 3, wherein the secondary system is further configured to operate in a replay mode where the secondary system replays log data stored in the second log data store.

### Claim 5 (depends on 4)

The non-transitory machine-readable medium of claim 4, wherein the set of encryption keys is a first set of encryption keys, wherein the secondary system replays the encrypted log data stored in the second log data store by determining a second set of encryption keys to use to decrypt the encrypted log data, decrypting the encrypted log data with the set of encryption keys, and replaying the decrypted log data.

### Claim 6 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the program further comprises a set of instructions for:
determining a new set of encryption keys for a tenant of the database system;
storing the new set of encryption keys in the second set of data stores;
generating a first set of log data that includes data stored in the second set of data stores;
generating a second set of log data indicating that the new set of encryption keys are determined for the tenant for the database system; and
transmitting the first set of log data and the second set of log data to the secondary system.

### Claim 7 (depends on 1)

The non-transitory machine-readable medium of claim 1, wherein the program further comprises a set of instructions for, after transmitting the data included in the first snapshot of the first set of data stores and the data included in the second snapshot of the second set of data stores to the secondary system, not transmitting any more data stored in the first set of data stores to the secondary system.

### Claim 8

A method executable by a primary system, the method comprising:
taking a first snapshot of a first set of data stores configured to store data associated with a database system;
after taking the first snapshot of the first set of data stores, taking a second snapshot of a second set of data stores configured to store a set of encryption keys for a set of tenants of the database system;
transmitting data included in the first snapshot of the first set of data stores to a secondary system; and
transmitting data included in the second snapshot of the second set of data stores to the secondary system.

### Claim 9 (depends on 8)

The method of claim 8, wherein the secondary system is configured to replicate a state of the primary system based on the data included in the first snapshot of the first set of data stores and the data included in the second snapshot of the second set of data stores.

### Claim 10 (depends on 8)

The method of claim 8 further comprising:
generating log data comprising changes to the database system since a last system save point;
determining a set of encryption keys to use to encrypt the log data;
encrypting the log data with the set of encryption keys;
storing the encrypted log data in a first log data store; and
transmitting the encrypted log data to the secondary system, wherein the secondary system is configured to store the encrypted log data in a second log data store.

### Claim 11 (depends on 10)

The method of claim 10, wherein the secondary system is further configured to operate in a replay mode where the secondary system replays log data stored in the second log data store.

### Claim 12 (depends on 11)

The method of claim 11, wherein the set of encryption keys is a first set of encryption keys, wherein the secondary system replays the encrypted log data stored in the second log data store by determining a second set of encryption keys to use to decrypt the encrypted log data, decrypting the encrypted log data with the set of encryption keys, and replaying the decrypted log data.

### Claim 13 (depends on 8)

The method of claim 8 further comprising:
determining a new set of encryption keys for a tenant of the database system;
storing the new set of encryption keys in the second set of data stores;
generating a first set of log data that includes data stored in the second set of data stores;
generating a second set of log data indicating that the new set of encryption keys are determined for the tenant for the database system; and
transmitting the first set of log data and the second set of log data to the secondary system.

### Claim 14 (depends on 8)

The method of claim 8 further comprising, after transmitting the data included in the first snapshot of the first set of data stores and the data included in the second snapshot of the second set of data stores to the secondary system, not transmitting any more data stored in the first set of data stores to the secondary system.

### Claim 15

A primary system comprising:
a set of processing units; and
a non-transitory machine-readable medium storing instructions that when executed by at least one processing unit in the set of processing units cause the at least one processing unit to:
take a first snapshot of a first set of data stores configured to store data associated with a database system;
after taking the first snapshot of the first set of data stores, take a second snapshot of a second set of data stores configured to store a set of encryption keys for a set of tenants of the database system;
transmit data included in the first snapshot of the first set of data stores to a secondary system; and
transmit data included in the second snapshot of the second set of data stores to the secondary system.

### Claim 16 (depends on 15)

The primary system of claim 15, wherein the secondary system is configured to replicate a state of the primary system based on the data included in the first snapshot of the first set of data stores and the data included in the second snapshot of the second set of data stores.

### Claim 17 (depends on 15)

The primary system of claim 15, wherein the instructions further cause the at least one processing unit to:
generate log data comprising changes to the database system since a last system save point;
determine a set of encryption keys to use to encrypt the log data;
encrypt the log data with the set of encryption keys;
store the encrypted log data in a first log data store; and
transmit the encrypted log data to the secondary system, wherein the secondary system is configured to store the encrypted log data in a second log data store.

### Claim 18 (depends on 17)

The primary system of claim 17, wherein the secondary system is further configured to operate in a replay mode where the secondary system replays log data stored in the second log data store.

### Claim 19 (depends on 18)

The primary system of claim 18, wherein the set of encryption keys is a first set of encryption keys, wherein the secondary system replays the encrypted log data stored in the second log data store by determining a second set of encryption keys to use to decrypt the encrypted log data, decrypting the encrypted log data with the set of encryption keys, and replaying the decrypted log data.

### Claim 20 (depends on 15)

The primary system of claim 15, wherein the instructions further cause the at least one processing unit to:
determine a new set of encryption keys for a tenant of the database system;
store the new set of encryption keys in the second set of data stores;
generate a first set of log data that includes data stored in the second set of data stores;
generate a second set of log data indicating that the new set of encryption keys are determined for the tenant for the database system; and
transmit the first set of log data and the second set of log data to the secondary system.
