rsync -vae ssh user@host1:/tmp/dir user@host2:/tmp/

2003-10-23 Thread Darxus
I have legitimate ssh access to two remote machines.  ssh directly
from either machine to the other is blocked by firewalls which I cannot
control.

$ rsync -vae ssh [EMAIL PROTECTED]:/tmp/dir [EMAIL PROTECTED]:/tmp/
receiving file list ... done
rsync: mkdir [EMAIL PROTECTED]:/tmp: No such file or directory
rsync error: error in file IO (code 11) at main.c(319)

I would like this to copy host1:/tmp/dir into host2:/tmp/.

Is there some way to do this that I'm missing ?  Without copying the
gigabytes of data to my local hard drive first before sending to the second
machine (which I'm currently doing) ?

(scp has a similar problem, but rsync is often more useful to me)

-- 
"You may be recognized soon. Hide."
http://www.ChaosReigns.com
-- 
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html


Re: Question About Rsync on HP-UX

2003-10-23 Thread Chao,Eisen R.
Hi All:


I thought the default behaviour for Rsync was that it would only
overwrite
destination files that have a lesser date than the source file. Instead
I
have this:

Source  

 [EMAIL PROTECTED]
[/csapps115/IBMHTTPD/content-external/cna/html/meet]: ls -al meet.html
 -rwxr-xr-x   1 ibmhttpd   ibmhttpd 30151 Jul  9  2002 meet.html

Destination

 [EMAIL PROTECTED] [/opt/IBMHTTPD/content/cna/html/meet]: ls -al
meet.html
 -rwxrwxr-x   1 ibmhttpd   ibmhttpd   198 Oct 23 20:15 meet.html

I have an rsync job running every 15 minutes:

 #!/usr/bin/ksh

 /usr/local/bin/rsync -v  --stats  --archive  --times -e "ssh -1 -p
2245" /csapps115/IBMHTTPD/content-internal/  [EMAIL PROTECTED]::Intranet

 /usr/local/bin/rsync -v  --stats  --archive  --times -e "ssh -1 -p
2245" /csapps115/IBMHTTPD/content-external/
[EMAIL PROTECTED]::MoveRequest116


Originally I ran this w/ flags of "-av", reading some posted responses
at the rsync FAQ, I then tried
The flags  "--times" and "--archive"

Here is the /etc/rsyncd.conf file on sch1p116:

max connections = 20
list = yes

[HTTPD116]
   uid = ibmhttpd
   gid = ibmhttpd
   path = /opt/IBMHTTPD/logs
   comment = HTTPD Rsync Work Area- Logs

   [MoveRequest116]
   uid = ibmhttpd
   gid = ibmhttpd
   path = /opt/IBMHTTPD/content
   read only = false
   comment = Move Request Rsync Work Area- Content

   [TMP116]
   uid = ibmhttpd
   gid = ibmhttpd
   read only = false
   path = /tmp
   comment = Testing Area for writing files/dirs


Versions of rsync running on both source & destination are 2.4.6 for
HP-UX.

Are there some other lags to force it change only on datestamps ? What
about
In my copy of /etc/rsyncd.conf

Thanks,

Eisen Chao
CNA Insurance
--
To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html