Question About Rsync on HP-UX
jw schultz
jw at pegasys.ws
Fri Oct 24 17:34:21 EST 2003
On Thu, Oct 23, 2003 at 08:21:34PM -0500, Chao,Eisen R. wrote:
> 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
No. Rsync _replaces_ the destination file. And if --times
is enabled (implicit in --archive or -a) it does so if the
time stamps differ not just if the source is newer than the
destination.
> I
> have this:
>
> Source
>
> ibmhttpd at sch1p115
> [/csapps115/IBMHTTPD/content-external/cna/html/meet]: ls -al meet.html
> -rwxr-xr-x 1 ibmhttpd ibmhttpd 30151 Jul 9 2002 meet.html
>
> Destination
>
> ibmhttpd at sch1p116 [/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/ ibmhttpd at sch1p217::Intranet
>
> /usr/local/bin/rsync -v --stats --archive --times -e "ssh -1 -p
> 2245" /csapps115/IBMHTTPD/content-external/
> ibmhttpd at sch1p116::MoveRequest116
With rsync 2.4.* it will ignore the -e option if you specify
the remote location using ::
> Originally I ran this w/ flags of "-av", reading some posted responses
> at the rsync FAQ, I then tried
> The flags "--times" and "--archive"
No difference.
>
> Here is the /etc/rsyncd.conf file on sch1p116:
>
> max connections = 20
> list = yes
>
[snip]
>
> [MoveRequest116]
> uid = ibmhttpd
> gid = ibmhttpd
> path = /opt/IBMHTTPD/content
> read only = false
> comment = Move Request Rsync Work Area- Content
>
[snip]
>
> 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
Hmm? Not sure what you are asking. Rsync isn't going to
ignore size changes.
> about
> In my copy of /etc/rsyncd.conf
As for the file you speak of, i'm not sure why it isn't
being updated to the July version. You might want to run
the rsync job with greater verbosity.
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list