Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:rsync [2022/08/05 07:03] – [RSYNC] admin | linux:rsync [2024/02/28 11:56] (current) – [RSYNC transfer rate скорость копирования pv] admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
<code BASH> | <code BASH> | ||
#RSYNC | #RSYNC | ||
+ | |||
+ | #localcopy with create directory influxdb2 in dst ../docker | ||
+ | rsync -aHAXvh ./influxdb2 ../docker | ||
# Reception PUB | # Reception PUB | ||
Line 12: | Line 15: | ||
Проверить каталоги на предмет изменение содержания | Проверить каталоги на предмет изменение содержания | ||
<code BASH> | <code BASH> | ||
- | rsync -a --itemize-changes --dry-run / | + | #Using rsync to verify the integrity of a duplicate |
+ | #To guarantee that this test physically re-reads the files from the drive media, I suggest powering-down both drives and restarting them before running this test. | ||
+ | # This will clear their internal volatile caches. | ||
+ | sudo sh -c 'echo 3 > / | ||
+ | |||
+ | #Then to re-read both trees and compare their checksums: | ||
+ | |||
+ | rsync --dry-run --checksum --itemize-changes --archive SRC DEST | ||
+ | #Modern rsync checksum uses MD5, which is 128 bits. The likelihood of this failing to detect an error in an individual file is astronomically low (some discussion here), #but not impossible. | ||
+ | |||
+ | #example | ||
+ | rsync -a --itemize-changes | ||
+ | </ | ||
+ | |||
+ | # list elements | ||
+ | <code BASH> | ||
+ | # list big elements | ||
+ | \ls -l | awk ' | ||
</ | </ | ||
===== RSYNC transfer rate скорость копирования pv ===== | ===== RSYNC transfer rate скорость копирования pv ===== | ||
- | < | + | < |
- | -- https:// | + | ## https:// |
- | rsync --progress source destination | + | rsync --progress source destination |
- | pv -p file1 > file2 | + | pv -p file1 > file2 |
</ | </ | ||
{{: | {{: |