LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-18-2014, 01:26 PM   #1
arcolombo698
Member
 
Registered: Nov 2013
Posts: 31

Rep: Reputation: Disabled
rsync from remote server to a local external drive


Hello. I have used rsync to sync files across two remote servers quite successfully. Now I have a question with how to sync a local external drive to a remote server.

Here is my command

rsync -rav -e ssh server@files_I_wish_to_sync L:\Users\acolombo\Documents_external_hard_drive

this gives the error
"error both directories can not be remote"

note -- the external hard drive is attached to my local machine via USB... how do I complete this task?
 
Old 06-18-2014, 02:59 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
The L:\ implies you're doing this on a Windows system from command prompt? Is that the case? What rsync tool are you using given that Windows doesn't have one natively?

The command thinks you're trying to rsync from one remote server to another most likely due to the "L:\" as that is not a Linux drive specification.
 
Old 06-18-2014, 04:02 PM   #3
arcolombo698
Member
 
Registered: Nov 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Rysnc from the command prompt

Rsync is used from the command prompt via mobaXterm

here is the command line

rsync -rav sshuser@hemonc01.saban-chla.usc.edu:/data/RAID6/data/NBL_Untrimmed_RAW/ L:\NBL_Untrimmed_RAW\Files_Dir
The source and destination cannot both be remote.


yes L is the external hard_drive connection.

Do I just omit the "L: " and submit with the same directory path?
 
Old 06-18-2014, 08:58 PM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,725

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

"L:\foo\bar" is not a valid directory path in Linux. It should be something like "/mountpoint/foo/bar".

Evo2.
 
  


Reply

Tags
rsync


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
Rsync'd my entire drive to an external drive, grub-installed and FAILED to load GUI rootaccess Linux - General 1 03-15-2012 01:09 PM
using rsync to copy from server to local usb hard drive osakagreg Linux - General 4 09-24-2011 09:36 PM
rsync - Remote to local gabriel01 Linux - Software 3 03-09-2011 08:40 AM
Trying to rsync from remote to local dooley28 Linux - Software 1 09-23-2010 01:03 AM
Remote X.org server as external display to the local server nate56 Linux - Desktop 6 11-11-2009 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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