Dynamic Profile Folder

Using wildcards and patterns to synchronize multiple folders

Using Wildcards

Sometimes you may need to synchronize similar subfolders in a directory. For example, you have a folder structure like:

c:\myfiles\pic_2019q1
c:\myfiles\pic_2019q2
c:\myfiles\pic_2019q3
c:\myfiles\music_2019q1
c:\myfiles\music_2019q2
c:\myfiles\music_2019q3
...

Let's say you want to upload all "pic" folders to the server. An obvious option is to add all of them to the profile. But it takes time and sometimes it's not even workable when they grow every month.

Wildcard Pattern

With wildcards, you can simply use a path like "c:\myfiles\pic_*". FTP Synchronizer will automatically pick up all folders starting with "pic_" in "c:\myfiles\".

So, if you have following settings:

Local Folder: c:\myfiles\pic_*
Remote Folder: /myfiles/

You'll actually have several profile folders:

Local Folder: c:\myfiles\pic_2019q1  →  Remote Folder: /myfiles/pic_2019q1
Local Folder: c:\myfiles\pic_2019q2  →  Remote Folder: /myfiles/pic_2019q2
Local Folder: c:\myfiles\pic_2019q3  →  Remote Folder: /myfiles/pic_2019q3

New folders will be synchronized too as long as they match the wildcard.

Wildcard in Middle of Path

You can also use wildcards in the middle of the path, like "c:\myfiles\pic*\pngs", to match folders "c:\myfiles\pic2019\pngs", "c:\myfiles\pic2018\pngs", etc. This is useful when you need to synchronize the same folder in different parent folders.

Important Note

You only need to put the wildcards to the path of the Local Folder.

Using Number Ranges

If you have folders containing numbers, e.g. picture-0001, picture-0002, picture-0003... etc. You can also use a folder path like picture-<0001-0009>. Then, the profile folder will be expanded to: picture-0001, picture-0002...picture-0009.

Example:

Local Folder: c:\myfiles\picture-<01-09>
Remote Folder: /myfiles/

You'll actually have profile folders like:

Local Folder: c:\myfiles\picture-01   →   Remote Folder: /myfiles/picture-01
Local Folder: c:\myfiles\picture-02   →   Remote Folder: /myfiles/picture-02
...
Local Folder: c:\myfiles\picture-09   →   Remote Folder: /myfiles/picture-09

Using Variables

You can use pre-defined and system variables in the profile folder. For more information about variables, click here.