Skip to content

Commit c5628fd

Browse files
committed
Add seedRestoreUntil
1 parent ab62614 commit c5628fd

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

modules/ROOT/pages/clustering/databases.adoc

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ The `CloudSeedProvider` supports:
526526
** `gs:`
527527
** `azb:`
528528

529-
The `CloudSeedProvider` supports using xref:backup-restore/modes.adoc#differential-backup[differential backup] files as seeds.
530-
With the provided differential backup file, the `CloudSeedProvider` searches the directory containing differential backup files for a xref:backup-restore/online-backup.adoc#backup-chain[backup chain] ending at the specified differential backup, and then seeds using this backup chain.
529+
The `CloudSeedProvider` supports using xref:backup-restore/modes.adoc#differential-backup[differential backups] as seeds.
530+
With the provided differential backup, the `CloudSeedProvider` searches the directory containing differential backups for a xref:backup-restore/online-backup.adoc#backup-chain[backup chain] ending at the specified differential backup, and then seeds using this backup chain.
531531

532532
[.tabbed-example]
533533
=====
@@ -572,6 +572,30 @@ CREATE DATABASE foo OPTIONS { existingData: 'use', seedURI: 'azb://myStorageAcco
572572
======
573573
=====
574574

575+
The `CloudSeedProvider` supports seeding up to a specific date or transaction ID using the `seedRestoreUntil` option.
576+
577+
==== Seed up to a specific date
578+
579+
In order to seed up to a specific date you need to pass the differential backup that contains the data up to that date.
580+
581+
[source,shell]
582+
----
583+
CREATE DATABASE foo OPTIONS { existingData: 'use', seedURI: 's3:/myBucket/myBackup.backup', seedRestoreUntil: datetime("2019-06-01T18:40:32.142+0100") }
584+
----
585+
586+
This will seed the database with transactions committed before the provided timestamp.
587+
588+
==== Seed up to a specific transaction ID
589+
590+
In order to seed up to a specific transaction ID you need to pass the differential backup that contains the data up to that transaction ID.
591+
592+
[source,shell]
593+
----
594+
CREATE DATABASE foo OPTIONS { existingData: 'use', seedURI: 's3:/myBucket/myBackup.backup', seedRestoreUntil: 123 }
595+
----
596+
597+
This will seed the database with transactions up to, but not including, the transaction 123.
598+
575599
==== Seed provider reference
576600

577601
[cols="1,2,2",options="header"]

0 commit comments

Comments
 (0)