Skip to main content

Clone NocoDB tables and data to another base

Workflow preview

Workflow preview
100%
Clone NocoDB tables and data to another base preview
Open on n8n.io

1. Workflow Overview

NocoDB Clone Tables to Another Base What Is This? This workflow clones one or more NocoDB tables including their structure and optionally their data into a destination base, ...

Best for

  • File Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.set, n8n-nodes-base.httprequest, n8n-nodes-base.splitinbatches, n8n-nodes-base.stickynote, n8n-nodes-base.splitout, n8n-nodes-base.switch

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Łukasz.

Original n8n.io source

1.1 Workflow description

Title
Clone NocoDB tables and data to another base
Workflow name
Clone NocoDB tables and data to another base

NocoDB - Clone Tables to Another Base

What Is This?

This workflow clones one or more NocoDB tables - including their structure and optionally their data - into a destination base, using the NocoDB v3 API directly. Each copied table is timestamped to avoid naming collisions.

It is a practical utility for creating table backups, spinning up staging environments, or migrating data between NocoDB bases without any manual export/import steps.

Who Is It For?

Built for developers, data engineers, and NocoDB power users who manage multiple bases and need a reliable, repeatable way to duplicate table structures and content programmatically.

Useful any time you want to snapshot a table before a risky migration, clone a template table into a new project base, or move data between environments (development → staging → production) without touching the NocoDB UI.

How Does It Work?

The workflow runs on manual trigger and completes in two stages:

1. Fetch Metadata & Create Table Copies For each table ID listed in the Config node, the workflow calls the NocoDB Meta API to retrieve full table metadata - field names, types, and options. It then creates a new table in the destination base using that schema, with a timestamp appended to the name (e.g. Invoices - Copy 2025-04-28 14:32:00).

Relation fields are intentionally excluded from the copy: Links, Lookup, LinkToAnotherRecord, ForeignKey, and ID fields are filtered out to avoid broken references in the new table. All other field types - text, number, date, select, checkbox, etc. - are carried over as-is.

2. Copy Rows (Optional) If copy_rows is set to true in the Config node, the workflow fetches all records from each source table and bulk-inserts them into the newly created copy. Only non-relational fields are transferred, matching the schema created in step one. If copy_rows is false, the workflow stops after table creation - giving you an empty structural copy ready to populate.

How To Set It Up?

Prerequisites:

  • An active n8n instance (self-hosted or cloud)
  • A NocoDB instance (self-hosted or cloud) with API token access
  • At least one existing NocoDB base with tables to copy

Required Configuration:

Open the Config node and set the following fields:

  1. base_url - your NocoDB instance URL (e.g. https://app.nocodb.com for cloud, or your self-hosted address)
  2. source_tables - JSON array of table IDs to copy (e.g. ["table1", "table2"]); find table IDs in the NocoDB URL or via the Meta API
  3. source_base - ID of the base where the source tables live
  4. destination_base - ID of the base where copies should be created (can be the same as source)
  5. copy_rows - set to true to copy all row data, or false to copy structure only

Credentials Setup:

Connect your NocoDB API token credential to all HTTP Request nodes in the workflow. The same token is used for both Meta API calls (table creation) and Data API calls (record fetch and insert).

Finding Base and Table IDs:

You can see Base and Table ID after clicking on Base or Table. Optionally Base IDs and table IDs are visible in the NocoDB URL when browsing a table: https://your-noco-instance/dashboard/#/base/{baseId}/table/{tableId}. They can also be retrieved via the NocoDB Meta API.

What's More?

Bulk Insert for Speed Rather than inserting records one by one, the workflow uses a single bulk POST request per table to the NocoDB Data API. This keeps execution time short regardless of row count and prevents hitting rate limits.

Safe Relation Handling Relational fields (Links, Lookup, ForeignKey, LinkToAnotherRecord) are filtered out automatically during both table creation and data copy. This prevents errors caused by referencing tables or rows that don't exist in the destination base.

Multi-Table Support List as many source table IDs as needed in the config array. The workflow processes them sequentially using a SplitInBatches loop, creating and populating each copy in turn.

Structure-Only Mode Setting copy_rows to false skips all data transfer and stops after creating the empty table schema - ideal for templating workflows where you want a clean slate with the right column structure.


Happy hacking! For custom n8n workflow solutions or dedicated software development, reach out at [email protected] or visit sailingbyte.com.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Create NocoDB Table

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 4 - Create Tables

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 5 - Prepare fields data for Insert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 6 - Copy rows to new tables

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Fetch tables records

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Get Source Table Metadata

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 11 - Split tables

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 12 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Fetch tables records1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.3

Block 15 - Copy data over?

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

3. Summary Table

Workflow Clone NocoDB tables and data to another base
Complexity advanced
Nodes 15
Categories File Management
Author Łukasz
Published 28 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15373/15373.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Clone NocoDB tables and data to another base do?

NocoDB Clone Tables to Another Base What Is This? This workflow clones one or more NocoDB tables including their structure and optionally their data into a destination base, ...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.