<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Vinoth,</p>
<p>First of all, sorry for the delay in the answer, the moderations
on this ML was not functionning properly, and so this mail has
just been released.</p>
<p><br>
</p>
<p>The generic method file_copy_from_local_source_recursion is used
to copy a local file, so the source and the destination files need
to be on the same file; for instance</p>
<p>source: /usr/share/zoneinfo/GMT</p>
<p>destination: /etc/localtime</p>
<p>Since you mention on IP adress, I gather you want to copy a file
from a distant system. In this case, you have several choices:</p>
<ul>
<li>copying from the Rudder server with
file_copy_from_remote_source [1] which lets you copy a file from
the Rudder server (file should be located within
/var/rudder/configuration-repository/shared-files/ or any of its
subdirectory) to the local node</li>
<li>downloading a file from the Internet with file_download [2]
which download a file using curl (or wget if curl is not
available)</li>
<li>copying file from one node to another - in this case you need
to first expose the file by applying sharedfile_to_node on the
node that has the file, and set</li>
<ul>
<li>to which node you want to share this file</li>
<li>the file you want to share</li>
<li>and ID for this file</li>
</ul>
</ul>
and then use the generic method sharedfile_from_node, apply
it on the node that will get the file, and set<br>
<ul>
<ul>
<li>the node that shared the file</li>
<li>the file ID</li>
<li>and the destination of the file</li>
</ul>
</ul>
<p><br>
</p>
<p>Does it help you ?</p>
<p>Again, sorry for the delay in the answer,</p>
<p>Regards,</p>
<p>Nicolas<br>
</p>
<p>[1]
<a class="moz-txt-link-freetext" href="http://www.ncf.io/pages/reference.html#file_copy_from_remote_source">http://www.ncf.io/pages/reference.html#file_copy_from_remote_source</a><br>
</p>
<p>[2] <a class="moz-txt-link-freetext" href="http://www.ncf.io/pages/reference.html#file_download">http://www.ncf.io/pages/reference.html#file_download</a></p>
<p>[3] <a class="moz-txt-link-freetext" href="http://www.ncf.io/pages/reference.html#sharedfile_to_node">http://www.ncf.io/pages/reference.html#sharedfile_to_node</a></p>
<p>[4] <a class="moz-txt-link-freetext" href="http://www.ncf.io/pages/reference.html#sharedfile_from_node">http://www.ncf.io/pages/reference.html#sharedfile_from_node</a><br>
</p>
<div class="moz-signature">Nicolas CHARLES</div>
<div class="moz-cite-prefix">Le 12/02/2018 à 08:40, Vinoth Kumar a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAJbBfq4J6vbSNcZOzZ0LyiC-EvwwvDEAkkF=vp1LhztuMdeqRQ@mail.gmail.com">
<div dir="ltr">Hi Team,
<div><br>
</div>
<div>Could you please share me detailed information
about file_copy_from_local_source_recursion.</div>
<div><br>
</div>
<div>How the parameter should be define in source</div>
<div><br>
</div>
<div>absolute path on the target node.</div>
<div><br>
</div>
<div>like 192.x.x.x:/var/tmp/copyfle ?</div>
<div><br>
</div>
<div><img src="cid:part1.917FDC96.70EBE219@normation.com"
alt="Inline image 1" class="" height="312" width="454"><br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Vinoth</div>
<div>+91-8123358956</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rudder-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rudder-users@lists.rudder-project.org">rudder-users@lists.rudder-project.org</a>
<a class="moz-txt-link-freetext" href="https://www.rudder-project.org/mailman/listinfo/rudder-users">https://www.rudder-project.org/mailman/listinfo/rudder-users</a>
</pre>
</blockquote>
<br>
</body>
</html>