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

302 B

ubuntu & debian系统安装 rsync

apt install rsync

ubuntu & debian 系统安装 sshpass

apt install sshpass

rsync通过ssh 传输文件到nas

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