LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2016, 07:21 PM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Rep: Reputation: 29
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?
 
Old 09-24-2016, 08:06 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
-a implies -r, so -avh should suffice as options

Source directory isn't a symlink? ls -ld /home/user1a/javaexcercises
 
Old 09-25-2016, 12:20 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,667

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

rsync -rhva /home/user1a/javaexcercises/ wbrandt@193.1.212.41:/FDSdata2/wbjava
 
Old 09-25-2016, 05:03 AM   #4
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 508

Original Poster
Rep: Reputation: 29
this works perfect thanks

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

one / made all the difference...thanks again
 
Old 09-25-2016, 06:03 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,764

Rep: Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050
Remember to mark as SOLVED
 
Old 09-25-2016, 06:26 AM   #6
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,667

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Quote:
Originally Posted by sigint-ninja View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need someone to look at rsync script JosephS Linux - Software 1 04-26-2015 06:50 PM
[SOLVED] Problem with Bash Script, supposed to construct certain sized files of grep results. FenrirXFenris Programming 9 01-30-2014 12:12 PM
Rsync script help lleb Linux - Software 17 11-18-2011 04:30 PM
rsync script twantrd Programming 2 01-06-2005 06:46 AM
What startup script is dhcpcd supposed to be in? murray_linux Slackware 8 06-29-2004 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration