Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
1  
Type ps afux|grep rsync Get the process ID (second field), then strace -e trace=file -p PID And type Ctrl-C when you want to quit. – user414497 May 28 '15 at 6:15
    
Good answers in this askubuntu.com/questions/323775/… question – ringø Sep 24 '15 at 0:45
up vote 2 down vote accepted

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
share|improve this answer
    
That's what I do right now ;-) But I was hoping there is something like the 'kill -USR1' for 'dd' – Germar Aug 12 '12 at 22:57

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.

share|improve this answer

I use rsync -v --stats --progress

share|improve this answer

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.

share|improve this answer
    
Thanks pablomme. Ctrl+C and re-run is not an option for me because I'm syncing to a slow davfs mount. – Germar Jan 26 '12 at 3:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.