Question: How can you copy a directory to another system with compression?

  1. tar -ssh user@192.158.1.1 /bin/newfile
  2. tar cvzf - /wwwdata | ssh root@192.168.1.201 "dd of=/backup/wwwdata.tar.gz"
  3. You can't compress the stream
  4. scp -r directory user@192.168.1.1:/tmp

Answer: The correct answer of the above question is Option B:tar cvzf - /wwwdata | ssh root@192.168.1.201 "dd of=/backup/wwwdata.tar.gz"