summaryrefslogtreecommitdiff
path: root/examples/c/ex_all.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/c/ex_all.c')
-rw-r--r--examples/c/ex_all.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/c/ex_all.c b/examples/c/ex_all.c
index 1c036b75461..ea97668c697 100644
--- a/examples/c/ex_all.c
+++ b/examples/c/ex_all.c
@@ -1037,6 +1037,13 @@ backup(WT_SESSION *session)
ret = cursor->close(cursor);
/*! [backup]*/
+ /*! [incremental backup]*/
+ /* Open the backup data source for incremental backup. */
+ ret = session->open_cursor(
+ session, "backup:", NULL, "target=(\"log:\")", &cursor);
+ /*! [incremental backup]*/
+ ret = cursor->close(cursor);
+
/*! [backup of a checkpoint]*/
ret = session->checkpoint(session, "drop=(from=June01),name=June01");
/*! [backup of a checkpoint]*/