I am having trouble using the rsync properly and your help is needed. Here is what I would like to do. I have some files on a remote server (server1) and I'd like to copy them to the other server (server2). Server2 can access the server1 over ssh without any password.
Here is the file structure on server1.
/data/01/file[s] /data/02/file[s]
I would like to copy over everything under /data to server2 and keep the directory structure under /data and also keep the permissions as is.