I'm running 'rsync -a -i /foo /bar'. Every now and then I would like to know what exactly rsync is doing at the moment without having the -v output all the time. Is it possible to increase the verbosity of running processes e.g. by sending a kill signal?
5 Answers
I would redirect the output in a file and then tail -f to see the output when desired:
rsync -a /foo /bar >/tmp/rsync.log 2>&1
when needed:
tail -f /tmp/rsync.log
- 672
In addition of -i, you can use --progress for more verbosity in sending data. for example:
rsync -ai --progress .....
If need more and more the better way is logging it as @Marc M said above.
- 4,431
The rsync documentation does not describe such behaviour, nor is there a (proper or de-facto) standard signal to send to a process in order to modify its verbosity.
However thanks to the incremental nature of rsync you should be able to abort a running rsync with Ctrl+C and re-run it with '-v' and not lose much time as a consequence.
- 5,870
Also, you scan stack rsync's verbosity by using -v more than once (or -vv, -vvv etc) which gives you even more information (maybe more than you might want), combined with the other answers above.
- 374