sync.md 755 字节
Newer Older
G
gongweibao 已提交
1
# Name  
G
gongweibao 已提交
2
sync - sync directories. Recursively copies new and updated files from the source directory to the destination.
G
gongweibao 已提交
3 4

# Synopsis
G
gongweibao 已提交
5 6 7 8 9
``` 
sync [--preserve--links] [-v] <LocalPath> <PFSPath> 
sync [--preserve--links] [-v] <PFSPath> <LocalPath> 
sync [--preserve--links] [-v] <PFSPath> <PFSPath>`
```
G
gongweibao 已提交
10 11 12 13

# Description

```
G
gongweibao 已提交
14 15
The following options are available:

G
gongweibao 已提交
16
--preserve--links
G
gongweibao 已提交
17 18 19 20
   Reserve links when copy links.
   
-v 
	Cause sync to be verbose, showing files after their's synchronization is complete.
G
gongweibao 已提交
21 22 23
```

# Examples
G
gongweibao 已提交
24
- The following command sync locally directory to pfs.
G
gongweibao 已提交
25 26

```
G
gongweibao 已提交
27
paddle pfs sync ./dir1 /pfs/$DATACENTER/home/$USER/mydir1
G
gongweibao 已提交
28 29
```

G
gongweibao 已提交
30
- The following command sync pfs directory to local.
G
gongweibao 已提交
31 32

```
G
gongweibao 已提交
33
paddle pfs sync /pfs/$DATACENTER/home/$USER/mydir1 .
G
gongweibao 已提交
34
```