{"id":48885,"date":"2026-12-03T08:02:00","date_gmt":"2026-12-03T07:02:00","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=48885"},"modified":"2026-12-03T13:27:24","modified_gmt":"2026-12-03T12:27:24","slug":"point-in-time-recovery-in-the-mongodb-dmk","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/","title":{"rendered":"Point-in-time recovery in the MongoDB DMK"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Restoring full <code class=\"nowrap\">mongodump<\/code> backups leaves your database at one consistent point in time, but never lets you choose when you want to restore. Point-in-time recovery (PITR) closes the gap, and it is the main addition in <a href=\"https:\/\/www.dbi-services.com\/blog\/mongodb-dmk-2-7-0-point-in-time-recovery-9-0-support-and-auto-upgrade\/\">DMK <code class=\"nowrap\">2.7.0<\/code><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With MongoDB, PITR restores a backup and then replays oplog history up to an exact target timestamp. DMK now supports this at three granularities: the whole instance, a single database, or a single collection.<\/p>\n\n\n\n<h2 id=\"why-a-backup-alone-isnt-enough\" class=\"wp-block-heading\">A backup alone isn\u2019t enough<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In a MongoDB replica set, <code>mongodump --oplog<\/code> already captures the oplog while it runs, and <code>mongorestore --oplogReplay<\/code> can already replay it. That gives you a consistent snapshot of the exact moment the backup finished, which is the native PITR mechanism of MongoDB.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are multiple ways of closing the gap between a full backup and any point in time. DMK does it through <code class=\"nowrap\">dmk_oplog_backup.py<\/code>, a small cron-scheduled script. It archives the oplog entries written since its last successful run into incremental slices under <code class=\"nowrap\">$MONGO_BACKUP<\/code>.<\/p>\n\n\n\n<h2 id=\"setting-up-backups-for-pitr\" class=\"wp-block-heading\">Setting up backups for PITR<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A replica set is a prerequisite, since a standalone <code class=\"nowrap\">mongod<\/code> has no oplog to archive. On <code class=\"nowrap\">mdbrs01<\/code>, I added an entry to run every 5 minutes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>*\/5 * * * * . $HOME\/.dmk\/DMK;. $DMK_HOME\/bin\/dmk.sh; $PYTHON_BIN $DMK_HOME\/bin\/dmk_oplog_backup.py -i mdbrs01 &gt; \/dev\/null 2&gt;&amp;1<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output goes to <code class=\"nowrap\">\/dev\/null<\/code> because every run already writes a log file in <code class=\"nowrap\">$DMK_HOME\/log\/backup\/<\/code>, named <code class=\"nowrap\">oplog_backup_&lt;instance&gt;_&lt;timestamp&gt;.log<\/code>. The script also exits with 1 when a run fails, which a cron wrapper or a monitoring tool can check.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Each run checks two independent, per-instance settings, and archives if <strong>either<\/strong> is triggered:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code class=\"nowrap\">OPLOG_BACKUP_INTERVAL_MINUTES<\/code> (default <code class=\"nowrap\">240<\/code>): a fixed-cadence fallback. It guarantees an upper bound on how large a PITR gap can ever be, even with no writes at all.<\/li>\n\n\n\n<li><code class=\"nowrap\">OPLOG_BACKUP_CONSUMED_THRESHOLD_PCT<\/code> (default <code class=\"nowrap\">80<\/code>): archive early when the oplog window used since the last archive reaches this percentage of the configured size of the oplog. A burst of write volume then can\u2019t push entries out of the oplog before they\u2019re archived.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The first run for an instance has no <code class=\"nowrap\">last_archived_ts<\/code> yet, so it archives the entire current oplog. For a long-lived instance with a large, mostly-full oplog, that first run can take longer. Every run after it only captures what is new.<\/p>\n\n\n\n<h2 id=\"what-the-state-file-tracks\" class=\"wp-block-heading\">State file content<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Every run writes <code class=\"nowrap\">oplog_state.json<\/code> next to the backups:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n    \"last_archived_ts\": {\n        \"t\": 1792836014,\n        \"i\": 1\n    },\n    \"last_run_at\": \"2026-10-24T10:00:16.088027+00:00\",\n    \"last_interval_run_at\": \"2026-10-24T10:00:12.145177+00:00\",\n    \"slices\": &#091;\n        {\n            \"file\": \"oplog_slice_20261024_100010_749651.archive.gz\",\n            \"from_ts\": {\n                \"t\": 1792836004,\n                \"i\": 1\n            },\n            \"to_ts\": {\n                \"t\": 1792836011,\n                \"i\": 1\n            },\n            \"gzip\": true,\n            \"created_at\": \"2026-10-24T10:00:12.145156+00:00\"\n        },\n        {\n            \"file\": \"oplog_slice_20261024_100014_640279.archive.gz\",\n            \"from_ts\": {\n                \"t\": 1792836011,\n                \"i\": 1\n            },\n            \"to_ts\": {\n                \"t\": 1792836014,\n                \"i\": 1\n            },\n            \"gzip\": true,\n            \"created_at\": \"2026-10-24T10:00:16.088006+00:00\"\n        }\n    ],\n    \"replica_set_id\": \"6af75cb82539a1762c739aa7\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The first slice of a chain starts at the oldest entry of the oplog at that moment (<code class=\"nowrap\">from_ts<\/code> is <code class=\"nowrap\">null<\/code> only in a state file written by an older version of the DMK). The <code class=\"nowrap\">from_ts<\/code> of every later slice matches the <code class=\"nowrap\">to_ts<\/code> of the previous slice exactly. <code class=\"nowrap\">replica_set_id<\/code> records the replica set that the slices belong to, and a restore refuses slices of another one. With this file, there is no room for a gap between two consecutive entries in the file.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Oplog entries are <strong>idempotent<\/strong> by design, which is the same guarantee the MongoDB replication depends on. Every boundary in the archiver is inclusive (<code>ts &gt;= last_archived_ts<\/code>), so two consecutive slices always overlap by exactly one timestamp. Overlapping and re-applying an entry twice is safe. The state file itself is only updated <strong>after<\/strong> the slice is confirmed written and non-empty on disk. A crash may hit between writing the slice and updating the state (a killed cron job, an OOM, a reboot). The next run then just re-covers the same overlapping range, instead of skipping it.<\/p>\n\n\n\n<h2 id=\"what-happens-when-archiving-falls-behind\" class=\"wp-block-heading\">Archiving falling behind<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The oplog is a capped collection. <code class=\"nowrap\">dmk_oplog_backup.py<\/code> may not run often enough, the host may be busy, or the oplog itself may be undersized. In that case, entries the archiver still needed can get evicted before they\u2019re captured. DMK checks this on every run, by comparing <code class=\"nowrap\">last_archived_ts<\/code> against the current oldest entry of the oplog:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2026-10-24 10:01:12 | ERROR | Oplog gap detected for 'mdbrs01': the last recorded archive boundary (last_archived_ts={'t': 1, 'i': 1}) is older than the oplog's current first entry (first_ts={'t': 1792836004, 'i': 1}): archiving has fallen behind far enough that the entries in between have already been evicted from local.oplog.rs. That window is unrecoverable: no file anywhere contains it, and any PITR target inside it can no longer be restored. The incremental oplog chain for this instance is broken and must not be extended as if it still covered that range. Refusing to record this slice. Take a full backup to restart the PITR chain (or set OPLOG_BACKUP_AUTO_FULL_BACKUP_ON_GAP=true in dmk.conf to have DMK do this automatically the next time this happens).<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The run fails with an error, because it cannot be recovered. In this case, the only solution is to do a full backup again, which DMK only suggests, to avoid running a full backup during peak activity. However, you can decide whether DMK fixes the chain automatically. Setting <code class=\"nowrap\">OPLOG_BACKUP_AUTO_FULL_BACKUP_ON_GAP<\/code> to <code class=\"nowrap\">true<\/code> in the section of the instance in <code class=\"nowrap\">~\/.dmk\/dmk.conf.local<\/code> makes the script self-heal by taking a fresh full backup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;mdbrs01]\nvar::OPLOG_BACKUP_AUTO_FULL_BACKUP_ON_GAP::=::nowarn::true::<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">After this full backup, the archiving restarts from a new starting point. DMK takes it from the last entry of the <code class=\"nowrap\">oplog.bson<\/code> file that <code class=\"nowrap\">mongodump<\/code> wrote during the backup, which is <strong>the exact point the backup is consistent to<\/strong>. The first slice starts from that entry, so no write falls between the backup and the first slice.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With <code class=\"nowrap\">OPLOG_BACKUP_AUTO_FULL_BACKUP_ON_GAP<\/code> set to <code class=\"nowrap\">true<\/code>, the same situation ends with a fresh full backup and a new baseline:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2026-10-24 10:01:13 | INFO | Backup completed successfully.\n2026-10-24 10:01:14 | WARNING | PITR chain for 'mdbrs01' restarted after the oplog gap, new baseline ts={'t': 1792836064, 'i': 1}, taken from the fresh full backup's own captured oplog.bson. Any PITR target before this point that falls inside the gap remains permanently unavailable; targets before the gap are unaffected.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">MongoDB also has <code class=\"nowrap\">storage.oplogMinRetentionHours<\/code>, which keeps every oplog entry younger than that many hours. DMK reads it and then archives on the interval only. This setting <strong>does not replace the oplog slices<\/strong>, and can make the oplog size unpredictable.<\/p>\n\n\n\n<h2 id=\"restoring-to-a-point-in-time\" class=\"wp-block-heading\">Restoring to a point in time<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With oplog slices archiving in the background, <code class=\"nowrap\">dmk_restore.py<\/code> accepts <code class=\"nowrap\">--pitr<\/code> with either an ISO-8601 timestamp or epoch seconds. For a full-instance restore:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dmk_restore.py -i mdbrs01 -s \/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006 --pitr '2026-10-24T10:00:18'\n2026-10-24 10:00:25 | INFO | PITR target '2026-10-24T10:00:18' is 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0) (exclusive).\n2026-10-24 10:00:26 | INFO | PITR target 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0) is beyond the end of the oplog this backup captured (2026-10-24T10:00:05+00:00 = 2026-10-24T10:00:05+00:00 (1792836005:7)): it is reached through the archived oplog slices.\n2026-10-24 10:00:26 | INFO | Whole-instance PITR to 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0), beyond the oplog the base backup captured: replaying the archived oplog slices in a scratch instance (the target is not replayed into).\n2026-10-24 10:00:26 | INFO | Starting scratch instance for the out-of-place restore on port 33581 (data: '\/u90\/mongodb\/backup\/mdbrs01\/dmk_scratch_restore_mdbrs01_1695846\/data') ...\n2026-10-24 10:00:27 | INFO | Scratch instance on port 33581 is PRIMARY and ready.\n2026-10-24 10:00:27 | INFO | Restoring the base backup '\/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006' into the scratch instance (replaying its own captured oplog) ...\n2026-10-24 10:00:27 | INFO | Replaying archived oplog slice 1\/3 ('oplog_slice_20261024_100010_749651.archive.gz') ...\n2026-10-24 10:00:27 | INFO | Replaying oplog slice 'oplog_slice_20261024_100010_749651.archive.gz' (2 entries in the remaining window) into the scratch instance ...\n2026-10-24 10:00:27 | INFO | Replaying archived oplog slice 2\/3 ('oplog_slice_20261024_100014_640279.archive.gz') ...\n2026-10-24 10:00:27 | INFO | Replaying oplog slice 'oplog_slice_20261024_100014_640279.archive.gz' (2 entries in the remaining window) into the scratch instance ...\n2026-10-24 10:00:28 | INFO | Replaying archived oplog slice 3\/3 ('oplog_slice_20261024_100022_575920.archive.gz') ...\n2026-10-24 10:00:28 | INFO | Scratch instance is now at 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0).\n2026-10-24 10:00:28 | INFO | Extracting the recovered instance from the scratch instance ...\n2026-10-24 10:00:30 | INFO | Loading the recovered instance into 'mdbrs01' ...\n2026-10-24 10:00:30 | INFO | Restore of MongoDB instance mdbrs01 (the whole instance) from '\/u90\/mongodb\/backup\/mdbrs01\/dmk_scratch_restore_mdbrs01_1695846\/work\/extract'.\n&#091;...]\n2026-10-24 10:00:30 | INFO | Restore summary: 1351 document(s) restored, 0 failed.\n2026-10-24 10:00:30 | INFO | Restore completed successfully.\n2026-10-24 10:00:30 | INFO | Removing scratch instance data directory '\/u90\/mongodb\/backup\/mdbrs01\/dmk_scratch_restore_mdbrs01_1695846' ...\n2026-10-24 10:00:30 | INFO | Whole-instance PITR completed successfully.\norders=1100 paid=1100 void=0 customers=201 other.items=50<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Two mechanisms are used, and DMK picks the one that reaches the target time:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>A target time at the end of the oplog that the backup captured itself<\/strong> (its <code class=\"nowrap\">oplog.bson<\/code>, written while the dump ran) is the native MongoDB mechanism, unmodified: restore the base backup, then let <code>mongorestore --oplogReplay<\/code> replay that oplog up to the target time. A target time inside the window in which the dump of that backup ran is refused: a collection dumped after the target already contains later changes, and replaying cannot undo them. In this situation, you need to restore from an earlier full backup instead, and let the slices extend the replay up to the target time.<\/li>\n\n\n\n<li><strong>A later target time is reached through the archived slices.<\/strong> DMK restores the base backup into a throwaway scratch <code class=\"nowrap\">mongod<\/code>, replays its captured oplog with <code>mongorestore --oplogReplay<\/code> and then every slice up to the target time through the same <a href=\"https:\/\/www.dbi-services.com\/blog\/applyops-and-manual-oplog-replay-for-mongodb-pitr\/\"><code class=\"nowrap\">applyOps<\/code><\/a> engine as the namespace restores, and copies the recovered instance into the real one. The real instance is never an oplog replay target, so a refused or failed replay leaves it untouched.<\/li>\n<\/ul>\n\n\n\n<h3 id=\"targets-that-cannot-be-reached\" class=\"wp-block-heading\">Targets that cannot be reached<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A target that neither the backup nor the slices reach is refused. Left alone, <code class=\"nowrap\">mongorestore<\/code> would replay everything it has. It would still report success, having stopped at the end of what it had. DMK checks the chain first and refuses instead:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2026-10-24 10:00:43 | ERROR | PITR target 2026-10-24T11:00:42+00:00 = 2026-10-24T11:00:42+00:00 (1792839642:0) for the whole instance is beyond the furthest point continuously recoverable from this backup (2026-10-24T10:00:34+00:00 = 2026-10-24T10:00:34+00:00 (1792836034:1)). No gap was detected in the archived chain itself - nothing has been archived that far forward yet. Replaying to this target would silently stop at the reachable point and lose every write made after it while still reporting success. Choose a target at or before the reachable point, or run dmk_oplog_backup.py --force against a still-live instance to archive the missing window first, then retry.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Each archive run also writes a marker into the oplog with <code class=\"nowrap\">appendOplogNote<\/code> before it reads the end of the oplog. On a quiet instance, the marker proves that nothing was written between the last write and the archive run, so a target in that gap is accepted.<\/p>\n\n\n\n<h3 id=\"letting-dmk-select-the-base-backup\" class=\"wp-block-heading\">Letting DMK select the base backup<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The restore does not need <code class=\"nowrap\">-s<\/code>. Without it, DMK takes the newest full-instance backup whose dump ended before the target, and whose archived slices continue from the end of that backup up to the target:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Without a terminal (input redirected from \/dev\/null), DMK cannot ask for confirmation\n$ dmk_restore.py -i mdbrs01 --pitr '2026-10-24T10:00:18' &lt; \/dev\/null\n2026-10-24 10:00:36 | INFO | No source given: selected the newest backup that reaches the target 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0): '\/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006'. Its dump ended at 2026-10-24T10:00:05+00:00 = 2026-10-24T10:00:05+00:00 (1792836005:7), the archived oplog covers up to 2026-10-24T10:00:34+00:00 = 2026-10-24T10:00:34+00:00 (1792836034:1).\n2026-10-24 10:00:36 | ERROR | No terminal to confirm the selected backup on. Run again with --yes to accept it, or name the backup with -s.\n2026-10-24 10:00:36 | ERROR | Restore cancelled: the selected backup was not confirmed.\n\n# With --yes, DMK accepts the selected backup\n$ dmk_restore.py -i mdbrs01 --pitr '2026-10-24T10:00:18' --yes\n2026-10-24 10:00:36 | INFO | PITR target '2026-10-24T10:00:18' is 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0) (exclusive).\n2026-10-24 10:00:36 | INFO | No source given: selected the newest backup that reaches the target 2026-10-24T10:00:18+00:00 = 2026-10-24T10:00:18+00:00 (1792836018:0): '\/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006'. Its dump ended at 2026-10-24T10:00:05+00:00 = 2026-10-24T10:00:05+00:00 (1792836005:7), the archived oplog covers up to 2026-10-24T10:00:34+00:00 = 2026-10-24T10:00:34+00:00 (1792836034:1).\n2026-10-24 10:00:36 | INFO | --yes given: restoring from this backup without asking.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">DMK tells which backup it selected and asks <code>Restore from '&lt;backup&gt;'? [y\/N]<\/code> before it restores anything. <code class=\"nowrap\">--yes<\/code> accepts the selection for a script, and without a terminal and without <code class=\"nowrap\">--yes<\/code> DMK refuses. When no backup fits, it lists why each one was skipped. The search reads the end of the dump of each backup, starting from the newest, and the index of the slices. It stops at the first backup that fits and never opens a slice file.<\/p>\n\n\n\n<h3 id=\"namespace-scoped-restores\" class=\"wp-block-heading\">Namespace-scoped restores<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A database or a collection is restored to a point in time with the same slices:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dmk_restore.py -i mdbrs01 -s \/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006 -d myapp -c orders --pitr '2026-10-24T10:00:18'\n2026-10-24 10:00:49 | INFO | Restore summary: 1000 document(s) restored, 0 failed.\n2026-10-24 10:00:49 | INFO | Restore completed successfully.\n2026-10-24 10:00:49 | INFO | Applying 100 oplog entries to namespace 'myapp.orders' ...\n2026-10-24 10:00:50 | INFO | Namespace-scoped PITR for 'myapp.orders' completed successfully.\norders=1100 paid=1100 void=0 customers=201 other.items=50\n\n$ dmk_restore.py -i mdbrs01 -s \/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006 -d myapp -c orders --pitr '2026-10-24T10:00:18' --out-of-place\n2026-10-24 10:00:56 | INFO | Restore summary: 1100 document(s) restored, 0 failed.\n2026-10-24 10:00:56 | INFO | Restore completed successfully.\n2026-10-24 10:00:57 | INFO | Removing scratch instance data directory '\/u90\/mongodb\/backup\/mdbrs01\/dmk_scratch_restore_mdbrs01_1699052' ...\n2026-10-24 10:00:57 | INFO | Out-of-place PITR for namespace 'myapp.orders' completed successfully.\norders=1100 paid=1100 void=0 customers=201 other.items=50<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>mongorestore --oplogReplay<\/code> has no namespace filter, so this path works differently internally. DMK restores the base backup scoped to that namespace and reads the relevant oplog entries. The starting point comes from the oplog captured by the backup, or, for a per-database backup, from a <code class=\"nowrap\">dmk_backup_start_ts.json<\/code> file that DMK writes next to the backup and that stores its start time. DMK then pulls in whatever archived slices from <code class=\"nowrap\">dmk_oplog_backup.py<\/code> cover the remaining window. It re-applies only the matching entries in original order via <code>db.adminCommand({applyOps: [...]})<\/code>. Namespace-scoped PITR needs a directory-format backup, not <code class=\"nowrap\">-a\/--archive<\/code>. The oplog entries inside an archive file cannot be read one by one. They can only be replayed all at once, by a full <code class=\"nowrap\">--oplogReplay<\/code> restore.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Two details make that replay safe against the data <code class=\"nowrap\">mongorestore<\/code> already wrote. Every oplog entry records the collection UUID as it existed <strong>at backup time<\/strong>. But a freshly restored collection always gets a new UUID. So DMK strips that field before replay, along with retryable-write\/session fields tied to the original run. That lets <code class=\"nowrap\">applyOps<\/code> resolve purely by namespace. And MongoDB writes a batch of statements committed together, like an <code class=\"nowrap\">insertMany()<\/code> or a transaction, as one oplog entry. The individual operations are nested inside it. A naive per-entry filter would miss every write inside it, so DMK unpacks these recursively before applying its namespace filter.<\/p>\n\n\n\n<h3 id=\"collection-level-commands-in-the-window\" class=\"wp-block-heading\">Collection-level commands in the window<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Collection-level commands (create, drop, <code class=\"nowrap\">collMod<\/code>) inside the replay window are replayed in their original position. A collection dropped and recreated between the backup and the target ends up in the correct final state. It does not contain stale pre-drop documents. A <code class=\"nowrap\">dropDatabase<\/code> inside the window is the one thing DMK refuses to replay automatically:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dmk_restore.py -i mdbrs01 -s \/u90\/mongodb\/backup\/mdbrs01\/backup_mdbrs01_20261024_100006 -d other --pitr '2026-10-24T10:01:00'\n2026-10-24 10:01:11 | ERROR | Refusing PITR for namespace 'other': the replay window contains a dropDatabase on 'other' at ts=(1792836058, 2). Replaying a dropDatabase automatically is too destructive: restore up to a target timestamp before this drop, or handle this window manually.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replaying that command automatically would destroy the data the restore just wrote back. Picking a target before the drop, or handling that specific window by hand, is the only way.<\/p>\n\n\n\n<h2 id=\"checking-what-is-recoverable-before-you-need-it\" class=\"wp-block-heading\">Checking what is recoverable before you need it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before relying on any of this during a real incident, <code class=\"nowrap\">dmk_pitr_status.py<\/code> reports what is recoverable right now, per instance:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ dmk_pitr_status.py -i mdbrs01\n2026-10-24 10:01:11 | INFO | PITR availability for instance 'mdbrs01':\n2026-10-24 10:01:11 | INFO | Full-instance PITR (no -d\/-c): recoverable up to 2026-10-24T10:01:04+00:00 (from backup 'backup_mdbrs01_20261024_100006').\n2026-10-24 10:01:11 | INFO | Namespace-scoped PITR (-d\/-c): recoverable up to 2026-10-24T10:01:04+00:00 (from backup 'backup_mdbrs01_20261024_100006', cutoff 2026-10-24T10:00:05+00:00).\n\n$ dmk_pitr_status.py -i mdbrs01 --detailed\n2026-10-24 10:01:11 | INFO | PITR availability for instance 'mdbrs01':\n2026-10-24 10:01:11 | INFO | - backup_mdbrs01_20261024_100006 &#091;full-instance]\n2026-10-24 10:01:11 | INFO |     cutoff (base backup's own oplog position) : 2026-10-24T10:00:05+00:00\n2026-10-24 10:01:11 | INFO |     currently recoverable up to               : 2026-10-24T10:01:04+00:00\n2026-10-24 10:01:11 | INFO | - backup_mdbrs01_20261024_100006 &#091;namespace]\n2026-10-24 10:01:11 | INFO |     cutoff (base backup's own oplog position) : 2026-10-24T10:00:05+00:00\n2026-10-24 10:01:11 | INFO |     currently recoverable up to               : 2026-10-24T10:01:04+00:00<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code class=\"nowrap\">--detailed<\/code> breaks that down per backup found under <code class=\"nowrap\">$MONGO_BACKUP<\/code>, including any gap in the slice chain. This is built from the exact same logic the restore itself relies on. It walks the archived slice chain forward from each backup cutoff, and stops at the first missing file or break. So what it reports matches what a real restore would reach, not just what the state file optimistically claims.<\/p>\n\n\n\n<h2 id=\"summary\" class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ul class=\"nv-cv-m wp-block-list\">\n<li><code class=\"nowrap\">dmk_oplog_backup.py<\/code>, run frequently from cron, archives incremental oplog slices between backups, closing the window the <code class=\"nowrap\">--oplog<\/code> capture of a single backup leaves open.<\/li>\n\n\n\n<li>Slice boundaries are inclusive by design, and an overlap is safe. The state file only advances once a slice is confirmed on disk.<\/li>\n\n\n\n<li>A detected gap fails the run with an error by default. With <code>OPLOG_BACKUP_AUTO_FULL_BACKUP_ON_GAP=true<\/code>, DMK takes a fresh full backup instead.<\/li>\n\n\n\n<li><code>dmk_restore.py --pitr<\/code> restores the whole instance to a target at the end of the captured oplog of the backup with native <code>mongorestore --oplogReplay<\/code>, and to a later target through the archived slices. A target that cannot be reached is refused.<\/li>\n\n\n\n<li>With <code class=\"nowrap\">--pitr<\/code>, <code class=\"nowrap\">-s<\/code> (<code class=\"nowrap\">--source<\/code>, the backup to restore from) is optional: DMK selects the newest full-instance backup that reaches the target, asks for a confirmation, and <code class=\"nowrap\">--yes<\/code> accepts it.<\/li>\n\n\n\n<li>Database and collection-scoped <code class=\"nowrap\">--pitr<\/code> replays archived slices through <code class=\"nowrap\">applyOps<\/code>, and the in-place mode refuses if the window contains a <code class=\"nowrap\">dropDatabase<\/code>.<\/li>\n\n\n\n<li>Run <code class=\"nowrap\">dmk_pitr_status.py<\/code> before an incident, not during one, to know exactly how far back (or how recently) you can recover.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Restoring full mongodump backups leaves your database at one consistent point in time, but never lets you choose when you want to restore. Point-in-time recovery (PITR) closes the gap, and it is the main addition in DMK 2.7.0. With MongoDB, PITR restores a backup and then replays oplog history up to an exact target timestamp.&hellip;&nbsp;<\/p>\n","protected":false},"author":152,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133,3787,59],"tags":[22697,202,559,1142,3571,22690,22696,22695,22692,1702],"class_list":["post-48885","post","type-post","status-publish","format-standard","category-database","category-goldengate","category-oracle","tag-applyops","tag-backup","tag-dmk","tag-management","tag-mongo","tag-mongodb","tag-mongodump","tag-mongorestore","tag-oplog","tag-pitr"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v29.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Point-in-time recovery in the MongoDB DMK - dbi services Blog<\/title>\n<meta name=\"description\" content=\"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Point-in-time recovery in the MongoDB DMK\" \/>\n<meta property=\"og:description\" content=\"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-12-03T07:02:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-03T12:27:24+00:00\" \/>\n<meta name=\"author\" content=\"Julien Delattre\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Julien Delattre\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/\"},\"author\":{\"name\":\"Julien Delattre\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0e990b04385bd7ff84b414bb8d92c544\"},\"headline\":\"Point-in-time recovery in the MongoDB DMK\",\"datePublished\":\"2026-12-03T07:02:00+00:00\",\"dateModified\":\"2026-12-03T12:27:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/\"},\"wordCount\":1728,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"applyops\",\"Backup\",\"DMK\",\"Management\",\"Mongo\",\"mongodb\",\"mongodump\",\"mongorestore\",\"oplog\",\"PITR\"],\"articleSection\":[\"Database\",\"GoldenGate\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/\",\"name\":\"Point-in-time recovery in the MongoDB DMK - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-12-03T07:02:00+00:00\",\"dateModified\":\"2026-12-03T12:27:24+00:00\",\"description\":\"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/point-in-time-recovery-in-the-mongodb-dmk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Point-in-time recovery in the MongoDB DMK\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/0e990b04385bd7ff84b414bb8d92c544\",\"name\":\"Julien Delattre\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/JDE_Web-1-scaled.jpg\",\"caption\":\"Julien Delattre\"},\"description\":\"Julien Delattre, member of the Oracle Team Zurich, has more than five years of experience specializing in Oracle databases, plus expertise in MariaDB and MongoDB. Prior to dbi services, he was a Database Administrator at Atos in Angers, France, and a Data Scientist at Air France in Paris and Apurata in Lima. Julien holds a Master's degree in Computer Science, Data Science, and Statistics from Centrale Paris \\\/ Universit\u00e9 Paris-Saclay.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/julien-delattre\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Point-in-time recovery in the MongoDB DMK - dbi services Blog","description":"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/","og_locale":"en_US","og_type":"article","og_title":"Point-in-time recovery in the MongoDB DMK","og_description":"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.","og_url":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2026-12-03T07:02:00+00:00","article_modified_time":"2026-12-03T12:27:24+00:00","author":"Julien Delattre","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Julien Delattre","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/"},"author":{"name":"Julien Delattre","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0e990b04385bd7ff84b414bb8d92c544"},"headline":"Point-in-time recovery in the MongoDB DMK","datePublished":"2026-12-03T07:02:00+00:00","dateModified":"2026-12-03T12:27:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/"},"wordCount":1728,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["applyops","Backup","DMK","Management","Mongo","mongodb","mongodump","mongorestore","oplog","PITR"],"articleSection":["Database","GoldenGate","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/","url":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/","name":"Point-in-time recovery in the MongoDB DMK - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2026-12-03T07:02:00+00:00","dateModified":"2026-12-03T12:27:24+00:00","description":"Point-in-time recovery MongoDB instances, databases or collections get from DMK 2.7.0: incremental oplog archiving and applyOps replay.","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/point-in-time-recovery-in-the-mongodb-dmk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Point-in-time recovery in the MongoDB DMK"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0e990b04385bd7ff84b414bb8d92c544","name":"Julien Delattre","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2025\/05\/JDE_Web-1-scaled.jpg","caption":"Julien Delattre"},"description":"Julien Delattre, member of the Oracle Team Zurich, has more than five years of experience specializing in Oracle databases, plus expertise in MariaDB and MongoDB. Prior to dbi services, he was a Database Administrator at Atos in Angers, France, and a Data Scientist at Air France in Paris and Apurata in Lima. Julien holds a Master's degree in Computer Science, Data Science, and Statistics from Centrale Paris \/ Universit\u00e9 Paris-Saclay.","url":"https:\/\/www.dbi-services.com\/blog\/author\/julien-delattre\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/48885","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/152"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=48885"}],"version-history":[{"count":5,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/48885\/revisions"}],"predecessor-version":[{"id":49130,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/48885\/revisions\/49130"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=48885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=48885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=48885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}