rsync to multiple remote servers
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
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
rsync
add a comment |
up vote
6
down vote
favorite
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
rsync
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
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
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
rsync
rsync
asked Dec 23 '14 at 3:24
Miati
1,0972919
1,0972919
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
6
down vote
accepted
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.
add a comment |
up vote
7
down vote
Turns out there is a program that permits this, just not the original rsync program.
It's called pssh (parallel ssh I suppose)
One of the features:
"-- Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently copies files to multiple hosts in parallel"
- http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
add a comment |
up vote
0
down vote
Albeit you're invoking the command multiple times through file input, this can be done by specifying the desired destinations in one desired file:
while read in; do rsync -av /Path/of/Source/Synced.file "$in":/Path/of/Destination/Synced.file; done < destinations.txt
Please excuse my test as I only had two systems available at the time, but I'm most certain this will work for multiple systems as desired. It's not the most elegant method I suppose, but it's definitely one way of automating. And please, feel free to correct me if this doesn't work as I don't have the resources available to test beyond two systems at this time of post.
New contributor
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
6
down vote
accepted
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.
add a comment |
up vote
6
down vote
accepted
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.
add a comment |
up vote
6
down vote
accepted
up vote
6
down vote
accepted
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.
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.
answered Dec 23 '14 at 3:37
John Zwinck
1753
1753
add a comment |
add a comment |
up vote
7
down vote
Turns out there is a program that permits this, just not the original rsync program.
It's called pssh (parallel ssh I suppose)
One of the features:
"-- Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently copies files to multiple hosts in parallel"
- http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
add a comment |
up vote
7
down vote
Turns out there is a program that permits this, just not the original rsync program.
It's called pssh (parallel ssh I suppose)
One of the features:
"-- Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently copies files to multiple hosts in parallel"
- http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
add a comment |
up vote
7
down vote
up vote
7
down vote
Turns out there is a program that permits this, just not the original rsync program.
It's called pssh (parallel ssh I suppose)
One of the features:
"-- Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently copies files to multiple hosts in parallel"
- http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
Turns out there is a program that permits this, just not the original rsync program.
It's called pssh (parallel ssh I suppose)
One of the features:
"-- Parallel rsync (parallel-rsync, upstream calls it prsync), efficiently copies files to multiple hosts in parallel"
- http://www.ubuntugeek.com/execute-commands-simultaneously-on-multiple-servers-using-psshcluster-sshmultixterm.html
answered Jan 12 '15 at 19:47
Miati
1,0972919
1,0972919
add a comment |
add a comment |
up vote
0
down vote
Albeit you're invoking the command multiple times through file input, this can be done by specifying the desired destinations in one desired file:
while read in; do rsync -av /Path/of/Source/Synced.file "$in":/Path/of/Destination/Synced.file; done < destinations.txt
Please excuse my test as I only had two systems available at the time, but I'm most certain this will work for multiple systems as desired. It's not the most elegant method I suppose, but it's definitely one way of automating. And please, feel free to correct me if this doesn't work as I don't have the resources available to test beyond two systems at this time of post.
New contributor
add a comment |
up vote
0
down vote
Albeit you're invoking the command multiple times through file input, this can be done by specifying the desired destinations in one desired file:
while read in; do rsync -av /Path/of/Source/Synced.file "$in":/Path/of/Destination/Synced.file; done < destinations.txt
Please excuse my test as I only had two systems available at the time, but I'm most certain this will work for multiple systems as desired. It's not the most elegant method I suppose, but it's definitely one way of automating. And please, feel free to correct me if this doesn't work as I don't have the resources available to test beyond two systems at this time of post.
New contributor
add a comment |
up vote
0
down vote
up vote
0
down vote
Albeit you're invoking the command multiple times through file input, this can be done by specifying the desired destinations in one desired file:
while read in; do rsync -av /Path/of/Source/Synced.file "$in":/Path/of/Destination/Synced.file; done < destinations.txt
Please excuse my test as I only had two systems available at the time, but I'm most certain this will work for multiple systems as desired. It's not the most elegant method I suppose, but it's definitely one way of automating. And please, feel free to correct me if this doesn't work as I don't have the resources available to test beyond two systems at this time of post.
New contributor
Albeit you're invoking the command multiple times through file input, this can be done by specifying the desired destinations in one desired file:
while read in; do rsync -av /Path/of/Source/Synced.file "$in":/Path/of/Destination/Synced.file; done < destinations.txt
Please excuse my test as I only had two systems available at the time, but I'm most certain this will work for multiple systems as desired. It's not the most elegant method I suppose, but it's definitely one way of automating. And please, feel free to correct me if this doesn't work as I don't have the resources available to test beyond two systems at this time of post.
New contributor
New contributor
answered Nov 20 at 8:01
Brandon L
1
1
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f175549%2frsync-to-multiple-remote-servers%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown