rsync failure - no such file or directory

Bob Hutchinson hutchlists at midwales.com
Sat Sep 10 11:38:41 GMT 2005


On Friday 09 Sep 2005 19:36, Timothy Mercer wrote:
> Hi All,
>
> Attempting to run rsync but getting "no such file or directory" message.
> What looks like is happening is solaris 8 is removing the "space"
> between .../db2_backup and db2inst1 at enolagay... As a result rsync
> creates a new dir on the same box with the files in it.  Not sure what
> to do.  VERY new to unix and rsync.

if you run this in a script:

#!/bin/sh

verbose="-v"
source="/export/home/db2inst1/db2_backup/*"
target="db2inst1 at enolagay:/export/home/db2inst1/db2_backup"

rsync -e 'ssh' -a $verbose $source $target

## end of script ##

Please note that there are *no* spaces in $source or $target
Once you are running and happy you can remove the -v from $verbose

you can also achieve the same thing using

source="/export/home/db2inst1/db2_backup"
target="db2inst1 at enolagay:/export/home/db2inst1/"

because you are using -a the directory db2_backup will be created if it does 
not exist.

>
> bash-2.03$ rsync -e ssh -av /export/home/db2inst1/db2_backup/*
> db2inst1 at enolagay: /export/home/db2inst1/db2_backup
> building file list ... rsync: link_stat
> "/export/home/db2inst1/db2_backup/db2inst1 at enolagay:" failed: No such
> file or directory (2)
> done
>
> sent 194 bytes  received 20 bytes  428.00 bytes/sec
> total size is 633405440  speedup is 2959838.50
> rsync error: some files could not be transferred (code 23) at
> main.c(791)
> bash-2.03$ ls -l
> total 1237776
> -rw-r-----   1 db2inst1 db2iadm1 612401152 Aug 31 08:54
> CAMPMOR5.0.db2inst1.NODE0000.CATN0000.20050831085320.001
> -rw-r-----   1 db2inst1 db2iadm1 21004288 Aug 29 16:35
> WAS.0.db2inst1.NODE0000.CATN0000.20050829163512.001
> bash-2.03$ rsync -e ssh -av /export/home/db2inst1/db2_backup
> db2inst1 at enolagay: /export/home/db2inst1/db2_backup
> building file list ... rsync: link_stat
> "/export/home/db2inst1/db2_backup/db2inst1 at enolagay:" failed: No such
> file or directory (2)
> done
> db2_backup/
> db2_backup/CAMPMOR5.0.db2inst1.NODE0000.CATN0000.20050831085320.001
> db2_backup/WAS.0.db2inst1.NODE0000.CATN0000.20050829163512.001
>
> sent 633483071 bytes  received 70 bytes  3396692.45 bytes/sec
> total size is 633405440  speedup is 1.00
> rsync error: some files could not be transferred (code 23) at
> main.c(791)
> bash-2.03$
>
> Any pointers most appreciated.
>
> TIA,
> T

-- 
-----------------
Bob Hutchinson
Midwales dot com
-----------------


More information about the rsync mailing list