NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eton
Jan 12, 2015Luminary
Monitor rsync daemon?
Is there some way to view what rsync is doing during a backup job when rsync is running as a daemon? Maybe something similar to rsync -v, to monitor what files are being copied.
6 Replies
Replies have been turned off for this discussion
- markwollGuideI would second that capability.
The current logging is not robust enough for our needs.
Truncated log files are a not acceptable.
A check box for summary vs detailed would be nice for those who don't want the whole thing. - etonLuminaryCLI is fine with me, but of course a GUI version would be really great.
Just found this, rsyncd has a monitor switch:
http://linux-ha.org/doc/man-pages/re-ra-rsyncd.html - etonLuminaryNo help?
Let me rephrase.
I there a way to "connect" to an active rsync process and display what it's doing right now? Similar to -v (or -vv) on non daemon rsync commands. - etonLuminaryFound these methods:
You can do: strace -e open $(ps -o lwp= -LC rsync | sed 's/^/-p/')
To see what it's doing, orlsof -ad3-999 -c rsync
to see what files it currently has opened.
Source: Monitor/Watch running rsync process
More here: View stdout for another pts
But strace and lsof are dependable up on libc6 >= 2.6, so they will not install with apt-get. - abickertonAspirantIf you look at the (truly hideous Perl code) /frontview/bin/backup then you can modify the command that's being executed. I would suggest teeing to a temporary log file.
- etonLuminary
abickerton wrote: If you look at the (truly hideous Perl code) /frontview/bin/backup then you can modify the command that's being executed. I would suggest teeing to a temporary log file.
Thanks abickerton! I've missed that one./frontview/bin/backup
That file might need further scrutiny.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!