From dcbd5ad031891b859e0790a5618ad5686da5b603 Mon Sep 17 00:00:00 2001 From: postmannen Date: Thu, 16 Jun 2022 07:35:03 +0200 Subject: [PATCH] updated readme --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 1f4b535..49b5db9 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ As long as you can do something as an operator on in a shell on a system you can - [REQHttpGetScheduled](#reqhttpgetscheduled) - [REQHello](#reqhello) - [REQCopyFileFrom](#reqcopyfilefrom) + - [REQCopySrc](#reqcopysrc) - [REQErrorLog](#reqerrorlog) - [Request Methods used for reply messages](#request-methods-used-for-reply-messages) - [REQNone](#reqnone) @@ -696,6 +697,32 @@ Copy a file from one node to another node. ] ``` +#### REQCopySrc + +Copy a file from one node to another node. + +```json +[ + { + "directory": "copy", + "fileName": "copy.log", + "toNodes": ["central"], + "method":"REQCopySrc", + "methodArgs": ["./testbinary","ship1","./testbinary-copied","500000","20"], + "methodTimeout": 10, + "replyMethod":"REQToConsole" + } +] +``` + +- toNode/toNodes, specifies what node to send the request to, and which also contains the src file to copy. +- methodArgs, are split into several fields, where each field specifies: + 1. SrcFullPath, specifies the full path including the name of the file to copy. + 2. DstNode, the destination node to copy the file to. + 3. DstFullPath, the full path including the name of the destination file. The filename can be different than the original name. + 4. SplitChunkSize, the size of the chunks to split the file into for transfer. + 5. MaxTotalCopyTime, specifies the maximum allowed time the complete copy should take. Make sure you set this long enough to allow the transfer to complete. + #### REQErrorLog Method for receiving error logs for Central error logger.