linux:rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:rsync [2021/11/21 04:49] adminlinux: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> </code>
  
 +Проверить каталоги на предмет изменение содержания
 +<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 > /proc/sys/vm/drop_caches'
 +
 +#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 /var/www/dokuwiki/data/pages/ /opt/docker-dokuwiki/www/data/pages/
 +</code>
 +
 +# list elements
 +<code BASH>
 +# list big elements
 +\ls -l | awk 'BEGIN{mega=1048576} {if ($5 >= mega) {$5 = $5/mega "MB"; print;}}'
 +</code>
 ===== RSYNC transfer rate скорость копирования pv ===== ===== RSYNC transfer rate скорость копирования pv =====
-<code> +<code BASH> 
-rsync --progress source destination+## https://unix.stackexchange.com/questions/3575/display-transfer-speed-when-performing-cp-from-the-command-line 
 + rsync --progress source destination 
 + pv -p file1 > file2
 </code> </code>
 {{:linux:pasted:20211121-044853.png}} {{:linux:pasted:20211121-044853.png}}
  • linux/rsync.1637470172.txt.gz
  • Last modified: 2021/11/21 04:49
  • by admin