Re: rsync failure - no such file or directory

This is a discussion on Re: rsync failure - no such file or directory within the Rsync forums, part of the Networking and Network Related category; On Friday 09 Sep 2005 19:36, Timothy Mercer wrote: > Hi All, > > Attempting to run rsync but ...


Go Back   Usenet Forums > Networking and Network Related > Rsync

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2005
Bob Hutchinson
 
Posts: n/a
Default Re: rsync failure - no such file or directory

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:39 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0