rsync -avzz --delete uchida@host_remote:tmp/jul04_2014/ /home/uchida/tmp/jul04_2014host_remote のフォルダーへ同期する。
rsync -avzz --delete /home/uchida/tmp/may25_2015/ uchida@host_remote:tmp/may25_2015ssh のポートが 2222 の時
rsync -avzz --delete -e "ssh -p 2222" uchida@host_remote:tmp/jul04_2014/ /home/uchida/tmp/jul04_2014公開鍵を使う
rsync -avzz --delete -e "ssh -i $HOME/.ssh/key_aaa" uchida@host_remote:tmp/jul04_2014/ /home/uchida/tmp/jul04_2014
rsync: failed to set permissions on-aを-rlOtにする
# systemctl start rsyncd設定ファイル
/etc/rsyncd.confClient
rsync サーバーとの同期$ rsync host_rsync:: xml_file XML json JSON ftp ftp area $
rsync -avz --delete rsync://host_rsync/ftp/ /tmp/ftp rsync -avz --delete rsync://host_rsync/var_tmp/json/ /var/tmp/json rsync -avz --delete rsync://host_rsync/var_tmp/xml_file/ /var/tmp/xml_file rsync -avz --delete --no-perms rsync://host_rsync/var_tmp/xml_file/ /var/tmp/xml_file別な表記方法
rsync -avz --delete host_rsync::ftp/ /tmp/ftp rsync -avz --delete host_rsync::var_tmp/json/ /var/tmp/jsonアップロード
$ rsync -avz --delete /home/uchida/bin/ host_rsync::uchida/binサーバー側で、SELinux を無効にする必要がある。
# cp /usr/share/doc/rsync/examples/rsyncd.conf /etc /etc/default/rsync を編集
RSYNC_ENABLE=true# systemctl start rsync
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1635) [Receiver=3.1.1]
$ nmap -p 873 host_aa Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-01 13:41 JST Nmap scan report for host_aa (172.20.0.30) Host is up (0.00036s latency). rDNS record for 172.20.0.30: host_aa.example.com PORT STATE SERVICE 873/tcp open rsync Nmap done: 1 IP address (1 host up) scanned in 0.05 seconds
rsync -rlptD dir/ remote:/dir/アップデートを許可する /etc/rsyncd.conf
エラーuid = root gid = root use chroot = yes pid file = /var/run/rsyncd.pid log file = /var/log/rsyncd.log # [uchida] path = /home/uchida comment = /home/uchida read only = no
rsync: chgrp "/tmp/.AAA_Aug20_2014.zip.55BDKM" (in BBBB) failed: Permission denied (13)-rltzuv --delete でエラーは消える。