hi: I am totally confused here. this is the simplest application, and I cannot figure out what I am doing wrong. could someone please clue me in? help would be appreciated. regards, /iaw $ rsync -avz remotehost:Finance/oosreview . receiving file list ... done sent 16 bytes received 5214 bytes 1494.29 bytes/sec total size is 10050681 speedup is 1921.74 # we have pulled oosreview/oosreview.tex and synced it to here. $ date Sun Nov 21 11:39:44 EST 2004 $ ls -l oosreview/oosreview.tex -rw-r--r-- 1 ivo ivo 94464 Nov 21 11:26 oosreview/oosreview.tex # ok, the synced oosreview.tex is 13 minutes old $ touch oosreview/oosreview.tex # pretend we have changing it. $ ls -l oosreview/oosreview.tex -rw-r--r-- 1 ivo ivo 94464 Nov 21 11:40 oosreview/oosreview.tex # our file has just aged. $ rsync -avz remotehost:Finance/oosreview . receiving file list ... done oosreview/oosreview.tex sent 846 bytes received 5254 bytes 1355.56 bytes/sec total size is 10050681 speedup is 1647.65 # but rsync decided to "update" it... $ ls -l oosreview/oosreview.tex -rw-r--r-- 1 ivo ivo 94464 Nov 21 11:26 oosreview/oosreview.tex # ...to an earlier version
On Sun, Nov 21, 2004 at 12:23:33PM -0500, ivo welch wrote:> # but rsync decided to "update" it... > # ...to an earlier versionBecause that's what you told it to do. Rsync is a copy program -- it just copies what you tell it to, in the direction that you tell it to. See the --update (-u) option for one possible restriction on what it will copy. Also check out the program "unison" if you're looking for a way to update changed files in both directions. ..wayne..