LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rsync script not doing what its supposed to (https://www.linuxquestions.org/questions/linux-newbie-8/rsync-script-not-doing-what-its-supposed-to-4175590093/)

sigint-ninja 09-24-2016 06:21 PM

rsync script not doing what its supposed to
 
trying to copy a directory from centos7 netbook to centos 7 server

rsync -rhva /home/user1a/javaexcercises wbrandt@193.1.212.41:/FDSdata2/wbjava/

all im ending up with is a red broken link in FDSdata2/wbjava
called javaexercises pointing to the directory i intend to backup...

why is this happening?

keefaz 09-24-2016 07:06 PM

-a implies -r, so -avh should suffice as options

Source directory isn't a symlink? ls -ld /home/user1a/javaexcercises

malekmustaq 09-24-2016 11:20 PM

Try again moving the slash ( / ) to another place:

rsync -rhva /home/user1a/javaexcercises/ wbrandt@193.1.212.41:/FDSdata2/wbjava

sigint-ninja 09-25-2016 04:03 AM

this works perfect thanks

rsync -rhva /home/user1a/javaexcercises/ wbrandt@193.1.212.41:/FDSdata2/wbjava

one / made all the difference...thanks again

grail 09-25-2016 05:03 AM

Remember to mark as SOLVED

malekmustaq 09-25-2016 05:26 AM

Quote:

Originally Posted by sigint-ninja (Post 5609771)
this works perfect thanks

rsync -rhva /home/user1a/javaexcercises/ wbrandt@193.1.212.41:/FDSdata2/wbjava

one / made all the difference...thanks again

I'm glad.

As advised above by grail mark your thread SOLVED that others encountering similar prob will find consolation. :)

Good luck and enjoy!

m.m.


All times are GMT -5. The time now is 09:19 PM.