Category Archives: catatan

View the rsync Progress during Transfer


When you use rsync for backup, you might want to know the progress of the backup. i.e how many files are copies, at what rate it is copying the file, etc.

rsync –progress option displays detailed progress of rsync execution as shown below.

$ rsync -avz --progress thegeekstuff@192.168.200.10:/var/lib/rpm/ /root/temp/
Password:
receiving file list ...
19 files to consider
./
Basenames
     5357568 100% 14.98MB/s 0:00:00 (xfer#1, to-check=17/19)
Conflictname 
     12288 100% 35.09kB/s 0:00:00 (xfer#2, to-check=16/19)
.
.
.
sent 406 bytes received 15810211 bytes 2108082.27 bytes/sec

total size is 45305958 speedup is 2.87

From: http://www.thegeekstuff.com/2010/09/rsync-command-examples/

Tagged

To find USB Speed from a terminal


The pv tool allows you to view the throughput of the data flowing through it. After installing the package, you could run a command like the following to see the write rate:

$ cat /dev/zero | pv > /media/some_usb/tmp123
203.1MiB 0:00:02 [100.2MiB/s] [ ]

For reading, perform the opposite operation using the newly-created tmp123 file:
$ cat /media/some_usb/tmp123 | pv > dev/null

Tagged , , ,