Rsync to multiple remote servers

rsync

I have a file I want to sent to multiple separate servers.
Is it possible to name multiple destinations?

rsync foo.png server1:foo.png server2:foo.png

This gives me a "Unexpected remote arg:server1:foo.png

Best Answer

No, there is no way in rsync to specify multiple destinations. You'll need to invoke the command multiple times. If you have many targets, you might want to consider using a network filesystem instead--it might be a better fit for your problem.

Related Question