Skip to main content

Move a Nextcloud folder file by file

Workflow preview

Workflow preview
100%
Move a Nextcloud folder file by file preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Description: This template facilitates the transfer of a folder, along with all its files and subfolders, within a Nextcloud instance. The Nextcloud user must have access to both the source and des...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.webhook, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.nextcloud

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Move a Nextcloud folder file by file
Workflow name
Move a Nextcloud folder file by file

Description:

This template facilitates the transfer of a folder, along with all its files and subfolders, within a Nextcloud instance. The Nextcloud user must have access to both the source and destination folders. While Nextcloud allows folder movement, complications may arise when dealing with external storage that has rate limits. This workflow ensures the individual transfer of each file to avoid exceeding rate limits, particularly useful for setups involving external storage with rate limitations.

How it works:

  • Identify all files and subfolders within the specified source folder.
  • Recursive search within subfolders for additional files.
  • Replicate the folder structure in the target folder.
  • Individually move each identified file to the corresponding location in the target folder.

Set up steps:

  • Set Nextcloud credentials for all Nextcloud nodes involved in the process. -Edit the trigger settings. Detailed instructions can be found within the respective trigger configuration.
  • Initiate the workflow to commence the folder transfer process.

Help

If you need assistance with applying this template, feel free to reach out to me. You can find additional information about me and my services here. => https://nicokowalczyk.de/links

I have also produced a video where I explain the workflow and provide an example. You can find this video over here. https://youtu.be/K1kmG_Q_jRk

Cheers. Nico Kowalczyk

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 - Whether type is file

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

Block 3 - Set new path for subfolder

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

Block 4 - Sticky Note

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

Block 5 - Sticky Note1

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

Block 6 - Set new path for file

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Sticky Note2

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

Block 8 - Sticky Note3

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

Block 9 - Sticky Note4

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

Block 10 - Sticky Note5

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

Block 11 - Webhook

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

Block 12 - Sticky Note6

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

Block 13 - Sticky Note7

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

Block 14 - Execute Workflow Trigger

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

Block 15 - Set folder-paths for from and to

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

Block 16 - Create to folder if necessary

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

Block 17 - Get all folders/files in from-folder

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

Block 18 - Loop over files and folders

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

Block 19 - Consolidate all files and folders found

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

Block 20 - Create subfolder in to-folder

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

Block 21 - Get all folders/files in found subfolder

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

Block 22 - Whether there is are more files or subfolders found

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

Block 23 - Consolidate all found files

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 24 - Loop Over all files

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

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Move a Nextcloud folder file by file
Complexity advanced
Nodes 32
Categories File Management
Author Nico Kowalczyk
Published 27 Nov 2023

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/1994/1994.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 Move a Nextcloud folder file by file do?

Description: This template facilitates the transfer of a folder, along with all its files and subfolders, within a Nextcloud instance. The Nextcloud user must have access to both the source and des...

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.