copying links/files using rsync command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting copying links/files using rsync command
# 1  
Old 05-28-2009
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  
Old 05-28-2009
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux command rsync sending files incrementally

Please, i have a question about rsync command: Here is the command that i have used in my script: rsync -ratlz --rsh="/usr/bin/sshpass ssh -o StrictHostKeyChecking=no" -aAXHltzh --progress --numeric-ids --devices --rsync-path="rsync" $1 $hostname:$1 using this command, i can... (0 Replies)
Discussion started by: chercheur111
0 Replies

2. Shell Programming and Scripting

Rsync copying within recent date range?

As many will point out, one of the benefits of using rsync (without --delete) is that it will sync files between source and destination, but not delete files in the destination which HAVE been deleted in the source. Well, I have kind of the opposite problem and I'm wondering if there are date... (2 Replies)
Discussion started by: WIOP33
2 Replies

3. Shell Programming and Scripting

command to copy original files from links in HP-UX

I have folder ABC and files in ABC are links. I want to create the same ABC folder in different path and copy the actual files from source ABC dir. Can anyone provide command for this? Thanks in advance. (2 Replies)
Discussion started by: venkatababu
2 Replies

4. UNIX for Dummies Questions & Answers

rsync with --link-dest doesn't create hard links

I have been experimenting with rsync as a scriptable backup option, reading various example and tips pages, including Time Machine for every Unix out there - IMHO That page seems to describe the exact behavior I want: The ability to make a "full backup" snapshot regularly, but with rsync... (0 Replies)
Discussion started by: fitzwilliam
0 Replies

5. OS X (Apple)

Automated command ; extracting files from folders and copying them into a single folder

Hello everyone, I'm running Mac OS X Leopard (10.5.8) and I want to use the Terminal to help automate this tedious and laborious command for me: I need to extract all of the .m4p files in my "iTunes Music" folder which reside in folders of the artist, and then subfolders for the albums and... (2 Replies)
Discussion started by: qcom
2 Replies

6. Shell Programming and Scripting

Command for copying files without

Hi.. I have a file with same name in different locations which i need to copy. Am trying this cp -r /var/lib/text1 /backup In the /backup i have the same file called text1 so it's prompting for overwrite. Any opinions on how to avoid this prompting and copy files. Thanks in advance. (5 Replies)
Discussion started by: krthik
5 Replies

7. UNIX for Dummies Questions & Answers

Using cp -r command to selectively omit *.dat files while copying a directory.

Hi all, I want to copy a directory named Ec1 to another directory named Ec2, newly created. But Ec1 has a bunch of *.dat files and many many other kinds of files. Whle creating Ec2, I selectively want to omit the *.dat files since they are huge files of the order of 100 MBs and there are... (5 Replies)
Discussion started by: d_sai_kumar
5 Replies

8. Solaris

LINKS command not working !!

Hello all.. When i issue command -------------------------------------------- bash-2.03$ links http://www.google.com/ bash: links: command not found ------------------------------------------------ any reason why this is not working...iam on solaris 8. thanks Ram (6 Replies)
Discussion started by: vr76413
6 Replies

9. Solaris

SCP from one solaris box to another without copying links

I am doing a scp (directory)from one solaris box to another.The problem is that all links present in that directory also get copied .I do not want the links to get copied .currently I am using following syntax scp -rvp pcserver info@appudemo.sea.us.wam.net:/home/info I checked the man... (1 Reply)
Discussion started by: u449064
1 Replies

10. UNIX for Advanced & Expert Users

rsync not copying all files from smb-mounted fs

We have an old windows server here, with a relatively large share upon it (200GB, 1-2 million files). Our entire network is Linux (RH8.0) based, and we therefore automount this using the samba client. We have just begun migration to a linux fileserver, to save ourselves having to use lovely... (2 Replies)
Discussion started by: fishsponge
2 Replies
Login or Register to Ask a Question