file copy
Syntax
file copy source-path destination-path
Description
Copy a file from one location to another.
Options
source-path |
Source file and path. |
destination-path |
Destination path where the file must be copied. |
Required Privilege Level
configure
Sample Output
file copy /var/log/action.log root@10.1.2.3:/tmp
user1@node> file copy /var/log/action.log root@10.1.2.3:/tmp
Where:
-
source-path:/var/log/action.log is the file path inside the Docker container of
node
, in whichuser1
is logged in. -
destination-path:/tmp is the file path in node
10.1.2.3
but not inside any Docker container as no user is logged into it.
file copy root@10.1.2.3:/tmp/action1.log /var/log/
user1@node> file copy root@10.1.2.3:/tmp/action1.log /var/log/
Where:
-
source-path:/tmp/action1.log in node
10.1.2.3
but not inside any Docker container as no user is logged into it. -
destination-path:/var/log/ is the file path inside the Docker container of
node
, in whichuser1
is logged in.
Release Information
Command introduced in Paragon Automation Release 2.0.0.