Monitor/Watch running rsync process

Solution 1:

You can do (in POSIX shells, including bash):

strace -e open,openat $(ps -o lwp= -LC rsync | sed 's/^/-p/')

Or in zsh:

strace -e open,openat -p${^$(ps -o lwp= -LC rsync)}

Or in fish

strace -e open,openat -p(ps -o lwp= -LC rsync)

Or in rc/es:

strace -e open,openat -p`{ps -o lwp= -LC rsync}

To see what it's doing, or

lsof -ad3-999 -c rsync

to see what files it currently has opened.

Solution 2:

The most simple solution would be redirecting the output of rsync to a logfile.

rsync -avz /something /somwhere >> ~/rsynclog