RSYNC syntax


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users RSYNC syntax
# 1  
Old 12-01-2005
RSYNC syntax

Hello,
Asimple question about RSYNC. I may not even be in the correct topic area.
When I type in:
Code:
$ rsync -a -v --delete tnellis@172.16.94.5/home/ shares/SHARE1/nitixbkup/

I get:
Code:
building file list ... link_stat tnellis@172.16.94.5/home/. : No such file or directory
done
wrote 29 bytes  read 20 bytes  98.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: partial transfer (code 23) at main.c(578)

I'm assuming that the syntax is incorrect.

I'm trying to back up all the files/folders on the remote machine at 172.16.94.3/home/ to a local box and place the copy in the shares/share1/nitixbkup folder.

Any ideas???

Tom

Last edited by Yogesh Sawant; 12-07-2010 at 10:30 AM.. Reason: added code tags
# 2  
Old 12-01-2005
I believe your missing a ':'

Change to:

Code:
$ rsync -a -v --delete tnellis@172.16.94.5:/home/ shares/SHARE1/nitixbkup/


Last edited by dangral; 12-01-2005 at 11:24 AM.. Reason: add correct info
# 3  
Old 12-01-2005
No luck

I tried adding the ":".
This is what I got:
Code:
rsync -a -v --delete tnellis@172.16.94.5:/home/ shares/SHARE1/nitixbkup/
Failed to exec rsh : No such file or directory
rsync error: error in IPC code (code 14) at util.c(162)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

I also tried adding a "*" after the /home/ and received the same error msg.
Should I also be adding my pwd for the remote machine. I'm currently not doing that.

Thanks,
Tom

Last edited by Yogesh Sawant; 12-07-2010 at 10:30 AM.. Reason: added code tags
# 4  
Old 12-01-2005
Quote:
Originally Posted by neldog
I tried adding the ":".
This is what I got:
rsync -a -v --delete tnellis@172.16.94.5:/home/ shares/SHARE1/nitixbkup/
Failed to exec rsh : No such file or directory
rsync error: error in IPC code (code 14) at util.c(162)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

I also tried adding a "*" after the /home/ and received the same error msg.
Should I also be adding my pwd for the remote machine. I'm currently not doing that.

Thanks,
Tom
Two things:
1) Can you get to shares from your current directory? It's best to put an absolute path in.
2) Is ssh running on the remote server? If so, use ssh instead of rsh by putting -e ssh in the beginning of the rsync command.
# 5  
Old 12-02-2005
pwd passing help???

Code:
rsync -e ssh -a tnellis@172.16.94.5:/home/ /shares/SHARE1/nitixbkup/
Could not create directory '/local_user_/.ssh'.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

It looks like I need to pass my password to the remote machine.
How is this done using rsync, I remember reading about this butI cannot remember how to do this???

Last edited by Yogesh Sawant; 12-07-2010 at 10:32 AM.. Reason: added code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Rsync Error: rsync: link_stat failed: No such file or directory (2)

I wish to copy all the files & folder under /web/Transfer_Files/data/ on mymac1 (Linux) to remote server mybank.intra.com (Solaris 10) /tmp/ location I am using Ansible tool synchronize module which triggers the unix rsync command as below:rsync --delay-updates -F --compress --archive --rsh=ssh... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. Shell Programming and Scripting

Need help on rsync

Hi experts, We need copy 5TB data from one server to another (over a 10Gbps link). We plan to use rsync -av remote:/<path /local on destination server but there're few special requirements like: 1. data copy process should run only from 18:00 Hrs to 07:00 every day until copy is completed. Is... (1 Reply)
Discussion started by: magnus29
1 Replies

3. UNIX for Dummies Questions & Answers

rsync

Hi all, I'm new to the rsync world in hpux. Currently I have rsync going through the main public lan, but dude to traffic loads, I have been told that i need to use a dedicated rsync lan. I currently have 4 spare nics and the plan was to use one of these for the rsync, but I can't figure out... (2 Replies)
Discussion started by: linuxwanabe
2 Replies

4. SuSE

rsync

I'm trying to use rsync to sync some data from my windows laptop to my linux openSUSE home sytem using cwRsync. The process has always worked until I got a new laptop and more or less at the same time decided to rebuild my linux box. on linux rsync --version rsync version 3.0.7 protocol... (2 Replies)
Discussion started by: giessenw
2 Replies

5. Shell Programming and Scripting

rsync

hi there I wonder if some-one can help. I am trying to use rsync on my mac to transfer a folder to a remote machine. I have logged into rysnc on my mac no problem and I'm trying to execute this command: rsync -a -e ssh /Users/myname/myfolder/sourcefolder/... (3 Replies)
Discussion started by: volterony
3 Replies

6. Shell Programming and Scripting

RSYNC syntax for pushing file with latest system date

OK, I am a little new to AIX 5.3 and also to scripting. I have a shell script that I wrote and am having difficulty pushing specific files by the system date. Here is my script: #!/usr/bin/sh RSYNC=/usr/local/bin/rsync SSH=/usr/local/bin/ssh KEY=<path> somekey.key RUSER=mike... (4 Replies)
Discussion started by: tfort73
4 Replies

7. Shell Programming and Scripting

using rsync

I'm just trying to use rsync to retreive the file from different servers with script. i want to look for a file, if the file exists, then retreive the file from different servers, and put it in one file. I have the following command. rsync -v -e ssh jerry@openbsd.nixcraft.in:~/webroot.txt /tmp ... (5 Replies)
Discussion started by: s_linux
5 Replies

8. Solaris

please help in rsync

Dear all, I m trying to rsync a file remotely but it is throwing following error. #/opt/sfw/bin/rsync -v -a -e ssh user@xx.xx.xx.xx:/export/home/naresh/utils.sh bash: rsync: command not found rsync: connection unexpectedly closed (0 bytes read so far) rsync error: error in... (10 Replies)
Discussion started by: naree
10 Replies

9. UNIX for Dummies Questions & Answers

rsync vs cp

Hi guys, I will be copying data from one FS to another. (only once) These are local Filesystems... Which tool would be more efficient to use in this case? There is a huge amount of data that needs to be copied... (1.5TB) John (1 Reply)
Discussion started by: jsy
1 Replies

10. UNIX for Dummies Questions & Answers

Rsync syntax??

Hello, Asimple question about RSYNC. I may not even be in the correct topic area. When I type in: $ rsync -a -v --delete tnellis@172.16.94.5/home/ shares/SHARE1/nitixbkup/ I get: building file list ... link_stat tnellis@172.16.94.5/home/. : No such file or directory done wrote 29 bytes read... (1 Reply)
Discussion started by: neldog
1 Replies
Login or Register to Ask a Question