Used in NextCloud, this workflow automates the transfer of folders and their contents, ensuring all files and subfolders are accurately relocated. It efficiently handles the movement of files to prevent exceeding rate limits, making it ideal for setups with external storage. The workflow identifies all items in the source folder, replicates the folder structure in the destination, and moves files individually to maintain organization and integrity.
- Businesses and Teams: Those needing to manage files efficiently within Nextcloud, especially when moving large folders with multiple subfolders and files.
- IT Professionals: Individuals responsible for data migration tasks who require automation to reduce manual effort and errors.
- Developers: Those looking to integrate file management capabilities into their applications using webhooks and API calls.
- Freelancers and Consultants: Professionals who need to organize client data efficiently without manual intervention.
- Educators and Trainers: Individuals who want to demonstrate automation capabilities in cloud storage management.
- Inefficiency in File Management: Manually moving files and folders can be time-consuming and error-prone, especially with a complex directory structure.
- Risk of Data Loss: Ensures that all files and subfolders are transferred correctly without missing any items, reducing the risk of data loss during migration.
- Complexity in Automation: Simplifies the process of automating file transfers using webhooks, making it accessible even for those with minimal coding experience.
- Handling Rate Limits: Effectively manages file transfers to avoid hitting rate limits imposed by external storage services.
1. Trigger Initiation: The workflow can be triggered manually or via a webhook, allowing for flexibility in how it is started.
2. Path Specification: Users specify the source folder (from-path
) and destination folder (to-path
) that need to be transferred.
3. Validation of Input: The workflow checks if the provided paths are valid; if not, it stops and returns an error message.
4. Folder Creation: The workflow creates the destination folder if it does not already exist, ensuring a smooth transfer process.
5. File and Subfolder Retrieval: It retrieves all files and subfolders from the specified source folder, allowing for comprehensive data management.
6. Processing Files: Each file is enriched with its new path in the destination structure, preparing it for transfer.
7. Moving Files: Files are moved to their new locations in the destination folder, with consideration for maintaining the original folder structure.
8. Optional Deletion: If desired, the source folder can be deleted after the transfer is complete, helping to maintain organization.
- Adjust Path Variables: Modify the from
and to
paths in the Set paths
node to suit your specific folder structure.
- Webhook Configuration: If using webhooks, ensure that the incoming requests contain the necessary JSON attributes (from
and to
) to trigger the workflow correctly.
- Node Settings: Customize settings within each node, such as adding additional error handling or modifying the way files are processed and moved.
- Execution Triggers: Enable or disable the manual trigger or webhook trigger based on your preferred initiation method.
- Documentation and Comments: Use sticky notes within the workflow to document changes or provide guidance for future users or modifications.