Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
=h1. Modularizing Profiles: include directive
An Example Transfer Profile
A profile definition for Server to Server transfer, from a sftp to a ftp server:
...
In this example all files with the file name extension ".txt" should be transfered from the server "wilma" via sftp to the server 8of9 by ftp. the folders are not explicitely specified and therefore the "home" folders of the user are selected.
Profile fragments
To make the profile more reusable and readable it is possible to reuse profiles snipets in the way like this:
...
The profiles for wilma and 8of9 are defined only once. They could be used as many time as needed in different transfer profiles. There is a "globals" profile as well.
Define Profiles using the include directive
Now we will specify the transfer profile again:
...