Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:rsync [2021/09/13 14:37] – created 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 10: | Line 13: | ||
</ | </ | ||
+ | Проверить каталоги на предмет изменение содержания | ||
+ | <code BASH> | ||
+ | #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 --checksum --dry-run / | ||
+ | </ | ||
+ | |||
+ | # list elements | ||
+ | <code BASH> | ||
+ | # list big elements | ||
+ | \ls -l | awk ' | ||
+ | </ | ||
+ | ===== RSYNC transfer rate скорость копирования pv ===== | ||
+ | <code BASH> | ||
+ | ## https:// | ||
+ | rsync --progress source destination | ||
+ | pv -p file1 > file2 | ||
+ | </ | ||
+ | {{: |