rsync サーバーとクライアントの問題

rsync サーバーとクライアントの問題

リモートマシンにコピーしたいファイルをホストするrsyncサーバーを設定しました。これはrsyncd.confファイルです:

max connections = 2
log file = /var/log/rsync.log
timeout = 300

[share]
comment = share
path = /mnt/share
read only = no
list = yes
uid = root
gid = root
auth users = rsync
secrets file = /etc/rsyncd.secrets

次のようにrsyncd.secretsファイルを作成します。

rsync:password

rsyncデーモンを起動した後、リモートシステムで次のコマンドを実行し、モジュールを確認しました。

[remoteserver] # rsync  rsync://10.0.0.10
share  share

次の設定で「share」をローカルの「/tm​​p/share」に同期するには、リモートサーバー(またはrsyncサーバー?)でどのコマンドを実行する必要がありますか?

こうなるかもしれませんか?

rsync -rv rsync://[email protected]::share /tmp/share

ベストアンサー1

構文はほぼ正確です。 rsync サーバー URL の形式はhost_or_ip::share_name.

おすすめ記事