LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   rsync error: errors selecting input/output files, dirs (code 3) at main.c(323) (https://www.linuxquestions.org/questions/linux-networking-3/rsync-error-errors-selecting-input-output-files-dirs-code-3-at-main-c-323-a-601184/)

cucolin@ 11-20-2007 12:58 PM

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...

cucolin@ 11-20-2007 02:15 PM

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

cucolin@ 11-20-2007 04:06 PM

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

cucolin@ 11-20-2007 04:56 PM

the trick is using single quotes: '/Volumes/SystemHD/Retrospect Catalogs/Weekly Catalog [088]' and it worked fine. thanks

whiteowl3 09-17-2020 02:03 PM

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.


All times are GMT -5. The time now is 12:20 AM.