You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/backup-restore/online-backup.adoc
+187Lines changed: 187 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -471,6 +471,193 @@ You can use the latest differential backup as the parent by setting the option `
471
471
This can be used to ensure you have differential backups for all transactions, which would allow you to restore to any point in time.
472
472
Otherwise, the transactions between a full backup and the previous differential backup will not be backed up as individual transactions.
473
473
474
+
[.tabbed-example]
475
+
=====
476
+
Different scenarios for using the `--prefer-diff-as-parent` option
477
+
[NOTE]
478
+
The general behaviour while taking a differential backup with the `--type=DIFF` option is that the *most recent non-empty* backup is used as the parent.
479
+
With the `--prefer-diff-as-parent` option, the *most recent non-empty differential* backup is used as the parent *when possible*:
480
+
in case there is no backup that satisfy the condition, then we fall back to the general behaviour.
481
+
======
482
+
483
+
Example 1: *Chain with full and differential backups*
474
484
485
+
Let's assume that every hour we write 10 transactions to the `neo4j` database, except from 12:30-13:30, when we don't write any transaction.
486
+
There is a backup job that takes a backup every hour and a full backup every 4 hours.
487
+
We refer as an _empty_ backup a backup that has no transactions, meaning that both the lower transaction ID and the upper transaction ID are zero)
488
+
Let's say that you have this backup chain:
489
+
490
+
[cols="h,e,m,h,h"]
491
+
|===
492
+
|Timestamp | Backup name | Backup type | Lower Transaction ID | Upper Transaction ID
0 commit comments