<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
# Description
# Description
```
```
--only-show-errors (boolean)
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
--preserve--links
--preserve--links
Reserve links when copy files
Reserve links when copy files
...
@@ -22,10 +16,10 @@ pfs_cp - copy files and directories
...
@@ -22,10 +16,10 @@ pfs_cp - copy files and directories
```
```
# Examples
# Examples
- The following command cp a single file to pfs
- The following command copies a single file to pfs
```
```
pfs_cp ./text1.txt pfs://mydir/text1.txt
paddle pfs cp ./text1.txt pfs://mydir/text1.txt
```
```
Output
Output
...
@@ -34,10 +28,10 @@ Output
...
@@ -34,10 +28,10 @@ Output
upload ./text1.txt to pfs://mydir/text1.txt
upload ./text1.txt to pfs://mydir/text1.txt
```
```
- The following command cp pfs file to a local file
- The following command copies pfs file to a local file
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
-R, -r, --recursive
-R, -r, --recursive
Copy directories recursively
Copy directories recursively
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if operation time out.
```
```
# Examples
# Examples
- The following command cp a single file to pfs
- The following command lists a single file
```
```
pfs_cp ./text1.txt pfs://mydir/text1.txt
paddle pfs ls pfs://mydir/text1.txt
```
```
Output
Output
```
```
upload ./text1.txt to pfs://mydir/text1.txt
2017-05-5 17:04:30 text1.txt
```
```
- The following command cp pfs file to a local file
Create the pfs directory(ies), if they do not already exist.
Create the pfs directory(ies), if they do not already exist. And create intermediate directories as required
```
-h, --help
display this help and exit
--version
output version information and exit
--only-show-errors (boolean)
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
If destination already exist, please [rm](rm.md) it first.
```
```
mv [OPTION]...
mv [OPTION]...
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>
...
@@ -11,28 +12,17 @@ mv [OPTION]...
...
@@ -11,28 +12,17 @@ mv [OPTION]...
# Description
# Description
```
```
-h, --help
display this help and exit
-v, --version
output version information and exit
--only-show-errors (boolean)
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
Create the directory, if it does not already exits
```
```
-r, -R, --recursive
-r, -R, --recursive
remove directories and their contents recursively
remove directories and their contents recursively
-v, --version
output version information and exit
--only-show-errors (boolean)
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out
sync - sync directories. Recursively copies new and updated files from the source directory to the destination
# Synopsis
# Synopsis
` pfs_cp
` sync [OPTIONS]...
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
<LocalPath> <PFSPath> or <PFSPath> <LocalPath> or <PFSPath> <PFSPath>`
# Description
# Description
```
```
-h, --help
-l, --links
Display this help and exit
copy symlinks as symlinks
--version
Output version information and exit
--only-show-errors (boolean)
Only errors and warnings are displayed. All other output is suppressed.
--page-size (integer)
The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out.
--preserve--links
Reserve links when copy files
-R, -r, --recursive
Copy directories recursively
```
```
# Examples
# Examples
- The following command cp a single file to pfs
- The following command sync locally directory to pfs
```
```
pfs_cp ./text1.txt pfs://mydir/text1.txt
sync ./dir1 pfs://mydir1
```
```
Output
Output
```
```
upload ./text1.txt to pfs://mydir/text1.txt
upload ./dir1/text1.txt to pfs://mydir1/text2.txt
upload ./dir1/text2.txt to pfs://mydir1/text2.txt
...
```
```
- The following command cp pfs file to a local file
- The following command sync pfs directory to local