typora/note/linux/rshnc同步文件到群晖nas.md
2024-12-12 10:48:55 +08:00

17 lines
302 B
Markdown

### 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
```