> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/references/resources/depot/consume/nilus.md).

# Data Movement (Nilus)

Move data between Depot-connected source and target systems with Nilus batch and CDC ingestion pipelines.

Use [Nilus](https://v2.dataos.info/references/resources/nilus.md) to move data from a Depot-connected source into a target system. Nilus supports managed batch loads for scheduled transfers and change data capture (CDC) for near-real-time replication. Configure the source and target with their Depot UDLs, then define the destination, load strategy, and schedule in a Nilus Workflow.

## How to consume a Depot in Nilus?

1. Ensure the Depot is created, and you have access permissions.
2. Identify the source path you want to ingest from the Depot.
3. Use the Depot UDL as the input/source reference in your Nilus pipeline configuration.
4. Select the data movement type based on your use case:
   * Batch mode for periodic loads
   * CDC mode for near real-time replication
5. Configure the target sink and schedule, then run and monitor the pipeline.

## Nilus Workflow example (batch)

The following Nilus Workflow reads from a PostgreSQL Depot and writes to an MSSQL Depot:

```yaml
name: mssql-to-pg2
version: v2alpha
type: workflow
tags:
  - dataos:resource:workflow
  - dataos:tenant:ct-onboarding
description: Nilus Batch Workflow Sample
owner: iamgroottmdcio
tenant: ct-onboarding
spec:
  type: instance
  dag:
    - name: pvc-test
      spec:
        runAsUser: iamgroottmdcio
        runAsApikey: '**********'
        compute: ct-compute
        stack: nilus:1.0
        stackSpec:
          sink:
            address: dataos://nilusmssqldepot1?purpose=rw
            options:
              dest-table: nilus_testing.ds2_dec_finaltesting_mssql_to_pg_11
              incremental-strategy: append
          source:
            address: dataos://niluspgdepot?purpose=r
            options:
              source-table: nilus.cdc_test
```

## Metadata scanning with Nilus

Nilus can also scan metadata from supported Depot-connected sources. A metadata pipeline publishes source metadata and available lineage, profiles, classifications, and usage context to the DataOS metadata catalog. It does not copy source rows to a target system.

See [Metadata pipelines](https://v2.dataos.info/references/resources/nilus/metadata-pipelines.md) for the workflow model, and [Metadata sources](https://v2.dataos.info/references/resources/nilus/metadata-pipelines/metadata-sources.md) for supported sources and scan capabilities.

## Typical use cases

* CDC and batch data movement into target zones.
* Scheduled data movement pipelines from operational systems.
* Metadata scans that keep the DataOS catalog current with source inventory and lineage.

## Next step

Choose the Nilus mode (batch or CDC), configure source and sink, and execute the pipeline.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://v2.dataos.info/references/resources/depot/consume/nilus.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
