Linked Questions
10 questions linked to/from How to rsync files between two remotes?
0 votes
3 answers
6k views
How to use rsync to copy files between 2 remote servers based on the localhost server? [duplicate]
I have a case when I need to move data from an old server: host1 to a new server: host2. The problem is host1 cannot see host2, but I can use another server (localhost) to SSH to both host1 and host2. ...
3 votes
3 answers
3k views
How do I sync two ubuntu folders which are in different servers configured in aws? [duplicate]
I have set up 2 ubuntu instances in aws. How do I sync /usr/ubuntu in both the machines?
0 votes
1 answer
3k views
How to rsync files between two remote servers? [duplicate]
How can I rsync files between two remote servers? I need to transfer files between two remote hosts, but it seems rsync doesn't support synchronization. Some more information: I have 2 servers A ...
7 votes
3 answers
34k views
How to copy between two remote hosts using tar piped into SSH from remote server when behind a firewall?
I'd like to transfer a directory between two servers, but compress the directory on the remote host before transfer, and then uncompress to another host. I'm sure it's possible to pipe everything all ...
1 vote
2 answers
8k views
Copy file from one remote server to another remote server
I am at server A. I want to copy a file from remote server B to remote server C. This can be done with below commands, scp username@B:/path_of_file_on_server_B/file.txt /path_of_file_on_server_A scp ...
2 votes
2 answers
3k views
How to rsync files between two remotes with an explicit port and different usernames?
I want to rsync files between two remote servers. I tried to follow the next solution of @roaima: https://unix.stackexchange.com/a/183516/137526, but I need a more delicate solution, for two reasons: ...
1 vote
2 answers
2k views
rsync files between two remotes, with only access from the "intermediate"
EDIT #1 As per answer by roaima, I tried (here with user1=user2) [user3@M3]$ ssh -R 50000:M2:22 user1@M1 rsync -e "ssh -p 50000" -avz /absolute_path1/ user2@localhost:/absolute_path2/ ...
1 vote
2 answers
3k views
Trying to run rsync between two remote servers via reverse port forwarding with ssh key
I'm trying to run an rsync between two servers. I'm basing things off of this post: How to rsync files between two remotes? What I find missing is how to facilitate the rsync (via ssh) when a key (...
1 vote
1 answer
2k views
scp -3 no longer works
I am trying to transfer a large file between two remote hosts (both on different subnets). I found this command to work the first time: scp -3 root@foo:/path/to/largefile user@bar:/path/to/where/it/...
2 votes
0 answers
197 views
how to backup remote location containing hard links, without rsync
I want to backup backintime-data from an internet-facing, remote machine running debian 11 (src). That is the hardlinks-part from the title. I want to back it up to a (very dumb) NAS (dest) in the ...