typora/note/linux/rshnc同步文件到群晖nas.md

17 lines
302 B
Markdown
Raw Normal View History

2024-12-11 21:48:55 -05:00
### 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
```