Do not use on any
shared computer
July 24, 2008 09:10pm pdt
null
[x]
Attachment Details

rsync with --update flag transfers NO files, even newer

Tags: linux, rsync, centos 4.2
rsync with --update flag transfers NO files, even newer

I have an rsync command like this:

rsync --dry-run --verbose  --progress --stats --update  \
      --compress --recursive --perms --links \
      --suffix SYBU \
     my.server.com::update      /home/mydir/

It examines the files, and won't return anything that already exists locally.
It is supposed to replace older files and leave newer ones alone, but it leaves them all alone.
I get this output:
   reviewing
   receiving file list ...
   51 files to consider
   
   Number of files: 51
   Number of files transferred: 0

It is hard to believe  the --update flag doesn't work, but I have tried everything.

If I take off the --update flag, all the different remote files are transferred,
even if the local copy is newer.

Both systems are centos 4.2

Both servers are in the same time zone, and the time on both systems is
correct to within a few seconds.




Start your free trial to view this solution
Question Stats
Zone: Storage
Question Asked By: bobtreu
Question Asked On: 03.26.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by MicheleMarcon

Rank: Master

Expert Comment by MicheleMarcon:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by cflong
Expert Comment by cflong:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by bobtreu
Author Comment by bobtreu:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34 / EE_QW_2_20070628