lftp between 2 remote hosts
I'm reading myself blind here;)
I want to mirror a directory between two remote SFTP hosts with lftp. I'm on my local computer and I have two hosts, system0 and system1 So, something like lftp sftp://system0 sftp://system1, then mirror /directory between system0 and system1 Can someone give me some pointers or an example. Thanks. |
Quote:
https://www.linux.com/news/cli-magic...sy-backup-lftp Also, why use lftp AT ALL? Rsync is standard on most Linux systems, and does EXACTLY what you're after, including keeping two directories in sync, and it supports SSH. You don't tell us what version/distro of Linux you're using, or provide many details...see the "Question Guidelines" link in my posting signature. |
That link you provided talks about synchronizing a remote directory with a local one. The original question was about sync between a remote directory and a remote directory.
|
Quote:
|
Well, I know how to mirror using from one host to another, but I don't know how to mirror when I got two remote hosts. I don't want to log in to one of the hosts; that's why I created this thread.
Do you know how to do this with lftp or not? I can also use rsync, but does rsync sync between two remote systems? |
[QUOTE=famadorian;5536232]Well, I know how to mirror using from one host to another, but I don't know how to mirror when I got two remote hosts. I don't want to log in to one of the hosts; that's why I created this thread.QUOTE]
Why? That is, by far, the easiest and most reliable solution. Quote:
Quote:
|
All times are GMT -5. The time now is 10:12 AM. |