diff --git a/extra/mariabackup/xtrabackup.cc b/extra/mariabackup/xtrabackup.cc
index 14d7c5821c7..c3e3c8e733c 100644
--- a/extra/mariabackup/xtrabackup.cc
+++ b/extra/mariabackup/xtrabackup.cc
@@ -2351,6 +2351,16 @@ xtrabackup_copy_datafile(fil_node_t* node, uint thread_n)
 		goto error;
 	}
 
+	ulint next_page_id;
+	next_page_id = xb_page_bitmap_range_get_next_bit
+			(cursor.read_filter_ctxt.bitmap_range, TRUE);
+
+	if (next_page_id == ULINT_UNDEFINED) {
+		msg("[%02u] Skipping %s.\n", thread_n, node_name);
+		xb_fil_cur_close(&cursor);
+		return(FALSE);
+	}
+
 	strncpy(dst_name, cursor.rel_path, sizeof(dst_name));
 
 	/* Setup the page write filter */
