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@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@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@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@enolagay: /export/home/db2inst1/db2_backup
> building file list ... rsync: link_stat
> "/export/home/db2inst1/db2_backup/db2inst1@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.200508310853 20.001
> -rw-r----- 1 db2inst1 db2iadm1 21004288 Aug 29 16:35
> WAS.0.db2inst1.NODE0000.CATN0000.20050829163512.00 1
> bash-2.03$ rsync -e ssh -av /export/home/db2inst1/db2_backup
> db2inst1@enolagay: /export/home/db2inst1/db2_backup
> building file list ... rsync: link_stat
> "/export/home/db2inst1/db2_backup/db2inst1@enolagay:" failed: No such
> file or directory (2)
> done
> db2_backup/
> db2_backup/CAMPMOR5.0.db2inst1.NODE0000.CATN0000.200508310853 20.001
> db2_backup/WAS.0.db2inst1.NODE0000.CATN0000.20050829163512.00 1
>
> 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
-----------------
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html