I can't seem to make this command work:
scp fx-devel1:/home/user/gege/feed.zip;2 fx-devel2:/home/user/gege/feed.zip;3
I have tried:
scp "fx-devel1:/home/user/gege/feed.zip;\2" "fx-devel2:/home/user/gege/feed.zip\;3"
yet it seems that it only escapes the first ';' as this appears:
feed.zip;2 100% 302KB 301.8KB/s 00:00
bash: 3: command not found
How do I make it work? I would like to include the ';3' in the name of the destination file.
EDIT: I can make it work when I improvise -- I have to use mv after transferring:
scp 'fx-devel1:/home/user/gege/feed.zip\;2' fx-devel2:/home/user/gege/feed.zip
ssh fx-devel2 mv /home/user/gege/feed.zip '/home/user/gege/feed.zip\;3'
But that means a lot more time. When transferring thousands of file, that could almost double the time accessing the servers.