消除警告.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-07-10 16:34:44 +08:00
parent 33e316c8e0
commit fae4e6992e
1 changed files with 6 additions and 6 deletions

View File

@ -42,27 +42,27 @@ rsync -arlP <src> <dst>
带压缩的拷贝
```bash
rsync -avzrlP <src> <dst>
rsync -avzzrlP <src> <dst>
```
远程拷贝
```bash
rsync -avzrlP <file> <usrname>@<IP>:<path & name>
rsync -avzzrlP <file> <usrname>@<IP>:<path & name>
# 或
rsync -avzrlP <usrname>@<IP>:<path & name> <file>
rsync -avzzrlP <usrname>@<IP>:<path & name> <file>
# 或
rsync -avzrlP -e 'ssh -p <port>' <usrname>@<IP>:<path & name> <file>
rsync -avzzrlP -e 'ssh -p <port>' <usrname>@<IP>:<path & name> <file>
```
排除文件或目录
```bash
rsync -avzrlP <usrname>@<IP>:<path & name> --exclude <exclude file1> --exclude <exclude fileN> <file>
rsync -avzzrlP <usrname>@<IP>:<path & name> --exclude <exclude file1> --exclude <exclude fileN> <file>
```
同步后删除源文件,相当于移动文件操作(不影响目录)
```bash
rsync -avzrlP --remove-source-files <src> <dest>
rsync -avzzrlP --remove-source-files <src> <dest>
```