來源和目的伺服器都需要有rsync

bash: rsync: command not found
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: remote command not found (code 127) at io.c(226) [Receiver=3.1.1]

之前使用rsync一直遇到這個問題

很納悶的是我的本機端明明有安裝rsync但怎麼會噴command not found

後來看到這篇文章才知道由於來源端(source)和目的端(destination)都要使用rsync溝通

所以使用rsync看到上述的錯誤訊息先檢查來源和目的端是否都有安裝rsync

因為某些Linux Distribution預設不會安裝rsync

安裝指令:

apt-get install rsync
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s