1.将rsync服务加入到自启动文件rc.local
echo "/usr/bin/rsync --daemon" >>/etc/rc.local
tail -l rc.local
2.同步文件排除(exclude)
单个文件:rsync -avz --exclude a /dangjingwei/data1 rsync_backup@192.168.0.104::oldboy --file-password=/etc/password
2024-03-22 10:53:16
1.将rsync服务加入到自启动文件rc.local
echo "/usr/bin/rsync --daemon" >>/etc/rc.local
tail -l rc.local
2.同步文件排除(exclude)
单个文件:rsync -avz --exclude a /dangjingwei/data1 rsync_backup@192.168.0.104::oldboy --file-password=/etc/password