Table of contents

Introduction

This guide provides step-by-step guidance on how to move files of different formats (.csv, .log, .json), from one filesystem to another.


Step 1: Create 2 filesystems.

First, we need to create two filesystems.


For this, we go to Storages -> Storages -> hit “+” to create a new one.


Give it a name - “Test FTP 1”

Settings: Local Filesystem (other options are FTP, FTP over SSH, Google Cloud Storage, and HTTP)

Root directory*: storages

Save & Continue

The first storage has been created.

Now we can go “Back” and hit “Test connection” to make sure the filesystem has been created and is operational.


Now let’s repeat the same steps for the second filesystem:


Hit “+” to create new storage.

Give it the name “Test FTP 2”.

Root directory*: root/destination

Save & Continue

The second storage has been created.


Step 2: Create a simple integration that moves/copies a file from one filesystem to another.

Next, we need to create a simple integration that will allow us to copy or move a file from one filesystem to another.


For this, go to Connections -> Incoming -> hit “+” to create a new one. 

Give it the name “Example - Fetch file from FTP 1”.

Subscriber: Filesystem: listing subscriber

Filesystem: Test FTP 1 (the source filesystem we have created before)


It is possible to add Plugins to either “Track queue progress” and select the tracker for it, or 

“Execute operations on files” to execute the operations before or after processing a file: 

Choose to copy a file, delete a file, or move the file. 


Hit “save & continue” to save the file. 


Next, create an outgoing configuration.

Go connections -> outgoing -> “+”

Give it a name: “Example - Moving the files to FTP 2”.

Publisher: Filesystem: copy a file

Source filesystem: Test FTP 1

Destination filesystem: Test FTP 2

Destination directory: destination/test 

Hit “save & continue”


Create a new route:

Connections -> routes -> “+” for new 

Give it a name: “Example - moving files between FTPs”.

Incoming configuration: Example - Fetch file from FTP1

Outgoing configuration: Example - moving the files to FTP 2

Hit “save & continue”


Run an incoming configuration to create a task.

Run a route to finish the task. 


That’s it, the file was moved!


If you decide to run an incoming config. again no new tasks will be created, since no new files were added to filesystem 1 and there is nothing to move. However, if you check logging in a route, you will see both records after running the incoming config. twice, although no new tasks are created.



Good luck with your integrations!