Dynamic Profile Folder
Using wildcard
Sometimes, you may need to synchronize some similar sub folders in a directory. For example, you have 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 server. An obvious option is to add all of them to profile. But it takes time and sometimes it's not even workable when they grow every month.
With wildcard, you can simply use a path like "c:\myfiles\pic_*". FTP Synchronizer will automatically pickup all folders start 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.
You can also use wildcard in the middle of the path, like "c:\myfiles\pic*\pngs", to match folders "c:\myfiles\pic2019\pngs", "c:\myfiles\pic2018\pngs"...etc. It's useful when you need to synchronize same folder in different parent folders.
Notes:
- You only need to put the filters to path of Local Folder.
|
Using number
If you have folders contains number. e.g. picture-0001, picture-0002, picture-0003...etc. You can also use 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. More information about variables, please click here
Return to FAQ index
|