Home / rsync hangs when “-vv” or “-vvv” flags are used

rsync hangs when “-vv” or “-vvv” flags are used

When using -vv or -vvv, the rsync command hangs after a while. The same rsync command works perfectly with less verbosity.

$ rsync -avv /src/ /dst/
[...]
^C
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(701) [sender=...]
rsync: [generator] write error: Broken pipe (32)

The main rsync developer advises against using -vv and higher.

However, if -vv or higher is required for monitoring, use one of the following parameters in the actual command.

Resolution 1

  • Add –no-inc-recursive flag to the current options.
$ rsync -avv --no-inc-recursive /src/ /dst/

Resolution 2

  • Add –msgs2stderr and -M–msgs2stderr flag to the current options.
$ rsync -avv --msgs2stderr -M--msgs2stderr /src/ /dst/

Leave a Reply