Sziasztok,
Az Rsync man-ja ezt irja a --checksum flagrol:
-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 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.
The sending side generates its checksums while it is doing the file-system scan that builds the list of the available files. The receiver generates its checksums when it is scanning for changed files, and will checksum any file that has the same size as the corresponding sender's file: files with either a changed size or a changed checksum are selected for transfer.
Note that rsync always verifies that each transferred file was correctly reconstructed on the receiving side by checking a whole-file checksum that is generated as the file is transferred, but that automatic after-the-transfer verification has nothing to do with this option's before-the-transfer "Does this file need to be updated?" check.
For protocol 30 and beyond (first supported in 3.0.0), the checksum used is MD5. For older protocols, the checksum used is MD4.
Jol ertelmezem, hogy sima fajlmasolasnal nem kell ezt hasznalnom, mert magatol is megcsinalja? (a forras local, a cel egy mountolt fajlrendszer)
- 464 megtekintés
Hozzászólások
Azoknal a file-oknal amiket atmasol azoknal csinal checksum ellenorzest, ez csak arra vonatkozik hogy eldontse kell-e atmasolni azt a file-t. Tehat mikor pl 5 db file-bol 3 latszolag mar ott van a destination-on akkor azoknal by default file datumot es meretet nezi (fileneven felul), hogy elter-e hogy akkor szinkronizalja at. A masik 2 file-nal ami meg nem is letezik ott nyilvan atmasolja es masolas utan checkolja.
Ez csak akkor kell ha tudod vagy sejted lehetnek olyan file-ok ahol valamiert nem frissult a file datum habar modositva lett es file meret is ugyanannyi mint a korabbi verzional, ellenben a tartalma megis elter, mert akkor masolas elott vegigmegy a file-okon checksum-al hogy eldontse kell-e masolni a file-okat, es amiket atmasolt azokon is lefut a checksum hogy jol masolta-e at oket.
- A hozzászóláshoz be kell jelentkezni
Ertem, koszonom!
Akkor max az lehet egy "dupla teszt" ha jol ertem, hogy flag nelkul atmasolom, aztan flag-el lefuttatom megegyszer es ha mar nem masol/felulir semmit, akkor ok volt minden.
- A hozzászóláshoz be kell jelentkezni