Single file copy

Single file copy
scp file.txt root@192.168.1.22:/backup/  

Directory copy
scp -r /home/user/weekly root@192.168.1.22:/backup/weekly      


rsync -hvrPt /home/user/weekly root@192.168.1.22:/backup/ --log-file=mylog.log      

rsync -hvrPt /home/user/* root@192.168.1.22:/backup/ --log-file=mylog.log