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
+152-1
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ Note: this is an EXPERIMENTAL option. Consult Neo4j support before use.
161
161
|false
162
162
163
163
|--prefer-diff-as-parent
164
-
|label:new[Introduced in 2025.04] When performing a differential backup, prefer the latest non-empty differential backup as the parent instead of the latest full backup.
164
+
|label:new[Introduced in 2025.04] When performing a differential backup, prefer the latest non-empty differential backup as the parent instead of the latest backup.
=== Perform a differential backup using the `--prefer-diff-as-parent` option
467
+
468
+
By default, a differential backup (`--type=DIFF`) uses the *most recent non-empty* backup -- whether full or differential -- in the directory as its parent.
469
+
470
+
The `--prefer-diff-as-parent` option changes this behavior and forces the backup job to use the *latest differential* backup as the parent, even if a newer full backup exists.
471
+
472
+
This approach allows you to maintain a chain of differential backups for all transactions and restore to any point in time.
473
+
Without this option, the transactions between the last full backup and a previous differential backup cannot be backed up as individual transactions.
474
+
475
+
To use the `--prefer-diff-as-parent` option, set it to `true`.
476
+
477
+
The following examples cover different scenarios for using the `--prefer-diff-as-parent` option.
0 commit comments