LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync remote to remote problem (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-remote-to-remote-problem-4175520469/)

Aashika 09-29-2014 05:34 AM

rsync remote to remote problem
 
Hello,

I have two systems A and B. There is a file say X in system A, which consists of certain paths to different folders.

What I want to do is, read the paths of file X and copy the folders with the same path as file X from system B into system B itself but in a different location.

Well I know this sound confusing, but is there any way to do it?

I tried doing rsync in system A like

rsync -ave ssh --files-from=$fileX user@systemB:/ user@systemB:/target_location

but I am getting an rsync error stating "The source and destination cannot both be remote."

pan64 09-29-2014 07:08 AM

Yes, rsync cannot handle that situation. You should download that X (from A to B) and use rsync locally. Or try something else...


All times are GMT -5. The time now is 07:41 PM.