-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple source directories with same config and recipients #1
Comments
Hello,
On Tue, 20 Nov 2018, anq4 wrote:
Hello.
Do anyone know if there is a way to have multiple source directories sharing
the same config and recipients.
Yes, that is possible.
Multiple hosts in HOST_CONFIG seem to work only in active/standby mode, and
we didn't find any way to put multiple directories in DIR_CONFIG
You could do it as follows:
$AFD_WORK_DIR/etc/DIR_CONFIG:
[directory]
ftp://&[some_host_list]//somedir
[files]
*
[destination]
[recipient]
sftp://user1@host1//somedir
sftp://user2@host2//somedir
$AFD_WORK_DIR/etc/group.list:
[some_host_list]
user1@host23
user3:secret@host6
user5:secret2@host5
AFD will read this as follows:
[directory]
ftp://user1@host23//somedir
[files]
*
[destination]
[recipient]
sftp://user1@host1//somedir
sftp://user2@host2//somedir
[directory]
ftp://user3:secret@host6//somedir
[files]
*
[destination]
[recipient]
sftp://user1@host1//somedir
sftp://user2@host2//somedir
[directory]
ftp://user5:secret2@host5//somedir
[files]
*
[destination]
[recipient]
sftp://user1@host1//somedir
sftp://user2@host2//somedir
You must think of &[some_host_list] just as an alias and this may even
contain the full directory entry and not just part of it. In
$AFD_WORK_DIR/etc/group.list you could also specify it as follows:
[some_host_list]
ftp://user1@host23//somedir
ftp://user3:secret@host6//somedir
ftp://user5:secret2@host5//somedir
Then the DIR_CONFIG entry should look as follows:
[directory]
&[some_host_list]
[files]
*
[destination]
[recipient]
sftp://user1@host1//somedir
sftp://user2@host2//somedir
So &[some_host_list] can be anywhere in the directory entry or as shown
above, stand completely alone.
Regards,
Holger
|
Hi Holger, 29 13:49:17 Created directory We are using version [directory] aaaabbbb [dir options] [files] group.list may you suggest what is wrong? best regards |
Hello Sa.Sà.
On Thu, 29 Nov 2018, sasa-1969 wrote:
Hi Holger,
I am SaSà from Italy. Nice to meet you again.
We made several test to use group.list but with no positive results.
Here below some system-log details:
29 13:49:17 Created directory /home/afd/afd_work//files/incoming/@&prova'
[@&prova] at line 27 from /home/afd/afd_work//etc/DIR_CONFIG
(eval_dir_config.c 2029) 29 13:51:57 <I> Created directory
/home/afd/afd_work//files/incoming/@$prova' [@$prova] at line 27 from
/home/afd/afd_work//etc/DIR_CONFIG (eval_dir_config.c 2029)
29 13:51:57 Removing /home/afd/afd_work//files/incoming/@&prova' [339b577f]
from dir_name_buf structure. 29 13:51:57 <D> Overflow from <0> for $prova.
Trying to correct. (fd.c 504) 29 13:53:11 <W> Incorrect url $prova' in
/home/afd/afd_work//etc/DIR_CONFIG line 6. Error is: could not find ://.
(eval_dir_config.c 910)
29 13:53:11 Removing `/home/afd/afd_work//files/incoming/@$prova' [957a517f]
from dir_name_buf structure.
We are using version
1.4.7-4 for development
1.4.7-10 for operation,
We tried both example, but we would like to use the second schema you
propose
here below the example
DIR_CONFIG
[directory] aaaabbbb
&[prova] (we used both & or $ with and without parenthesis)
[dir options]
do not remove
store retrieve list
ignore file time > 10800
[files]
*
..... to be continued
group.list
[prova]
***@***.***//path (the same name used in HOST_CONFIG)
***@***.***//path (the same name used in HOST_CONFIG)
may you suggest what is wrong?
That only works with the new AFD from github. 1.4.7 does not know
anything about group entries under [[directory].
Regards,
Holger
|
Thank you very much Holger. Do you recomend github version for serious production use over last 1.4.7? |
Here on github I see a pair of packets, that seem to be both 1.4.8, the fisrt one is unnamed. on 24 Apr 2017 on 3 Apr 2016 Then there's the ongoing working area. |
Hello,
On Tue, 11 Dec 2018, anq4 wrote:
Here on github I see a pair of packets, that seem to be both 1.4.8, the
fisrt one is unnamed.
on 24 Apr 2017
1.4.8-0.9.beta
on 3 Apr 2016
l
Then there's the ongoing working area.
When I look I see commits on 23rd April, 22nd, 21st, 20th, 12, 4, 3 and so
on. All with names. I do not understand where the problem is. Sorry :-(
Regards,
Holger
|
Hello.
Do anyone know if there is a way to have multiple source directories sharing the same config and recipients.
Multiple hosts in HOST_CONFIG seem to work only in active/standby mode, and we didn't find any way to put multiple directories in DIR_CONFIG
The text was updated successfully, but these errors were encountered: