The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Using RSYNC to copy files locally BG_JrAdmin SUN Solaris 4 07-31-2008 08:37 PM
Using cp -r command to selectively omit *.dat files while copying a directory. d_sai_kumar UNIX for Dummies Questions & Answers 5 07-18-2008 07:48 AM
rsync, which files where moved? JCR UNIX for Dummies Questions & Answers 5 02-11-2008 02:04 PM
SCP from one solaris box to another without copying links u449064 SUN Solaris 1 05-03-2006 06:45 PM
rsync not copying all files from smb-mounted fs fishsponge UNIX for Advanced & Expert Users 2 10-04-2005 04:40 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-28-2009
KiranKumarKarre KiranKumarKarre is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 62
copying links/files using rsync command

Hi
I am using rsync command to copy the likes like bwlow

rsync -vaR krish/harris/test data/charles

I am running this script in test1 folder but the krish/harssis /test is existed in test2 folder.
So when i run this command am getting the error like


rsync: link_stat "/home/test1/krish/harris/test " failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at main.c(702)
  #2 (permalink)  
Old 05-28-2009
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,285
Quote:
rsync -vaR krish/harris/test data/charles

I am running this script in test1 folder but the krish/harssis /test is existed in test2 folder.
When you are in test1 and you say the source is in test2, how should rsync find it when you don't tell it where it is or are currently in the wrong directory?!

Try using absolute or relative paths but not paths that do not exist.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 01:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0