Question : How to copy the whole folder using rsync ?

Hi,

I'm now using the following command :

rsync --verbose --rsh='ssh -p6298' IP:/backup/cpbackup/daily/*.tar.gz /backup/cpbackup/daily/

But this will only copy the *.tar.gz , may i know how to make the command to copy the whole IP:/backup/cpbackup/daily/ folder including files and folders ?

Thank you.

Answer : How to copy the whole folder using rsync ?

rsync -av --rsh='ssh -p6298' IP:/backup/cpbackup/daily/*  /backup/cpbackup/daily/
Random Solutions  
 
programming4us programming4us