### ubuntu & debian系统安装 rsync

```bash
apt install rsync
```

### ubuntu & debian 系统安装 sshpass

```bash
apt install sshpass
```

### rsync通过ssh 传输文件到nas

```bash
sshpass -p 'Sunqi0220.' rsync -av -e 'ssh' --progress /root/data/sql rsyncuser@rsynchost::share/backup/sql
```