Monitor/Watch running rsync process
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.
The most simple solution would be redirecting the output of rsync to a logfile.
rsync -avz /something /somwhere >> ~/rsynclog