Watch The Progress Of Existing Rsync Process

Posted By Weston Ganger

Oops you ran a long running rsync task and its taking forever. Now your wondering if its frozen. Here are two methods to see what rsync is doing.

# see what its doing
strace -e open $(ps -o lwp= -LC rsync | sed 's/^/-p/')

# see which files it currently has open
lsof -ad3-999 -c rsync

Related External Links:

Article Topic:Software Development - Linux

Date:January 03, 2017