← Back to team overview

sslug-teknik team mailing list archive

Re: rsync - tager ikke nye filer med

 

2009/7/25 Atte André Jensen <atte@xxxxxxxxxxxxxx>:
> Hej

[...]

> Indholdet bliver fint
> kopieret over første gang, men hvis jeg (for at teste) smider andre filer
> ind i localdir kommer de ikke med over når jeg kører scriptet igen.
>

prøv at tilføje -c til rsync
fra man-siden:
-c, --checksum

              This changes the way rsync checks if the files have been
changed and  are in need of a transfer.  Without this option, rsync
uses a “quick check” that (by default) checks if each file’s size and
time of last modification match between the sender and receiver.

              This option changes this to compare a 128-bit MD4
 checksum  for each  file  that  has a matching size.  Generating the
checksums means that both sides will expend a lot of disk I/O reading
all the  data in the files in the transfer (and this is prior to any
              reading that will be done to transfer changed  files),
 so  this can slow things down significantly.


Follow ups

References