The `copy` command uses sudo for the rsync command which is unnecessary. Besides security, it makes the command unnecessarily interactive. I have tried removing sudo and it works fine without.