LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-20-2007, 12:58 PM   #1
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Rep: Reputation: 31
rsync error: errors selecting input/output files, dirs (code 3) at main.c(323)


I'm trying to rsync a file to a remote server. I have done this before to this specific server, not sure if I forgot the right command of if there is something else going on. This is my rsync command:

sudo rsync -ae ssh user@remoteServer:/kunden/homepages/40/d205309670/htdocs/RetroCatalogs "/Volumes/SystemHD/Retrospect Catalogs/Weekly Catalog [088]"

I get:

ERROR: destination must be a directory when copying more than 1 file
rsync error: errors selecting input/output files, dirs (code 3) at main.c(323)

What is going on?

Thanks...

Last edited by cucolin@; 11-20-2007 at 02:14 PM.
 
Old 11-20-2007, 02:15 PM   #2
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
I tried this also:
sudo rsync -avz -e ssh user@remoteServer:/kunden/homepages/40/d205309670/htdocs/RetroCatalogs/ /Volumes/SystemHD/Retrospect?Catalogs/Weekly?Catalog?[088]

and got this:
receiving file list ... done
mkdir "/Volumes/SystemHD/Retrospect?Catalogs/Weekly?Catalog?[088]" failed: No such file or directory
rsync error: error in file IO (code 11) at main.c(334)

any comments? thanks
 
Old 11-20-2007, 04:06 PM   #3
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
the correct format is:

rsync -avz -e ssh rsync@remote.acme.com:/home/rsync/out/ /home/rsync/from_remote

I was wrong in that, but then I couldn't escape the spaces so I had to rename the source files and directory. This is not a solution. How do I escape the spaces I already tried " ", \, \\\, ?.

thanks
 
Old 11-20-2007, 04:56 PM   #4
cucolin@
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu, CentOS, RedHat
Posts: 416

Original Poster
Rep: Reputation: 31
the trick is using single quotes: '/Volumes/SystemHD/Retrospect Catalogs/Weekly Catalog [088]' and it worked fine. thanks
 
Old 09-17-2020, 02:03 PM   #5
whiteowl3
LQ Newbie
 
Registered: Sep 2020
Posts: 1

Rep: Reputation: Disabled
Sorry about the necro, but this thread is still top result for this error.

This error will also occur if you are calling rsync from within a directory that does not exist.

For example, if you cd into an external disk, then force unmount it, you cannot call rsync from that directory. cd to a directory which exists and rsync will run as expected.
 
  


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
cp command failing for large files - Input/Output error googs Linux - General 5 08-09-2012 12:28 PM
Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2) NosLycn Linux - Software 7 12-12-2011 02:50 AM
Gentoo X server freezes /var/lib/init.d/ files input output error bendeg Linux - Software 0 12-01-2005 05:01 AM
Knoppix 4.0.2 - HD install - input/output errors on README files and docs kitcatcher Linux - Distributions 3 11-12-2005 10:40 AM
Input/Output errors on files Poetics Slackware 4 08-25-2003 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:17 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