Prefix the “rsync” command with the “time” command.
It would be useful to estimate total time to transfer or
backup files and folders to another server or other storage device.
Example:
time rsync -av C20150416T025057Z.zip
"/media/MyBackup"
Sample output:
time rsync -av C20150416T025057Z.zip
"/media/MyBackup"
sending incremental file list
C20150416T025057Z.zip
sent 2146220138 bytes
received 31 bytes 18422490.72
bytes/sec
total size is 2145958091
speedup is 1.00
real 1m56.548s
user 0m25.358s
sys 0m15.137s
The "real" time is will display the accumulated time once the whole process is done.
If a log file is used in conjunction with the rsync command, the log file would be very
large and it might slow down the copying process. Since it will log a file, then copy a file so two process are executed one after the other.
Every file being copied will be appended to the log file.
Anyway, if you want to try rsync with log file use the
command below.
To test or check the output try the command below and press
ctrl+c to terminate copying.
If you open the log file, you will notice rsync logs all the
files being copied. And you can check the start time and the end time on the log file.
rsync -av --log-file=/var/myFiles/myrsync.log
/media/my_backup_source /media/my_backup_destination
Cheers..Hope it helps..
Comments
Post a Comment