Hi everyone,
I’ve been trying to monitor an rsync task on my TrueNAS SCALE setup, and while I’ve found a way to get some progress information, it’s not exactly great. Here’s what I’m using:
sudo lsof $(ps -o lwp= -LC rsync | sed 's/^/-p/')
This command shows me the files currently being processed by rsync, but the output is messy and includes a lot of system-related entries like libraries and pipes. For example:
rsync 6105 ben cwd DIR 0,56 692 3 /mnt/Big1/Media/TV Shows
rsync 6105 ben mem REG 0,33 1922136 40249 /usr/lib/x86_64-linux-gnu/libc.so.6
rsync 6105 ben 5r REG 0,56 640452409 28252 /mnt/Big1/Media/TV Shows/MyShow/Season 22/.~tmp~/MyShow - S22E07 - EpisodeName-720p.mkv
To make it a bit more useful, I’m filtering out the irrelevant entries with this:
sudo lsof $(ps -o lwp= -LC rsync | sed 's/^/-p/') | grep -Ev '(/usr|/lib|/dev|pipe|/proc|/sys|/run|mem|CHR|FIFO|unix)'
That helps clean up the output and leaves me with just the files being actively processed, but it still doesn’t feel like a great solution. It’s better than nothing, but it doesn’t really give me a clear picture of my progress.
My Question:
Is this as good as it gets for monitoring rsync progress on SCALE? Or is there a better method out there?
Thanks in advance for any advice!