LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 07:06 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

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

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

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

rsync -rhva /home/user1a/javaexcercises/ wbrandt@193.1.212.41:/FDSdata2/wbjava
 
Old 09-25-2016, 04: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, 05:03 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

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

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
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



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 05:50 PM
[SOLVED] Problem with Bash Script, supposed to construct certain sized files of grep results. FenrirXFenris Programming 9 01-30-2014 11:12 AM
Rsync script help lleb Linux - Software 17 11-18-2011 03:30 PM
rsync script twantrd Programming 2 01-06-2005 05:46 AM
What startup script is dhcpcd supposed to be in? murray_linux Slackware 8 06-29-2004 05:27 PM

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

All times are GMT -5. The time now is 06:01 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
Open Source Consulting | Domain Registration