How do I use rsync to copy all partitions from one linux box to another linux box.

I have one linux box[prod-server] which is running red hat enterprise linux 4.5 and another laptop which is running redhat enterprise linux3.8[backup-server]. I have similar partitions on both the boxes except that the partition sizes on the laptop is much higher. I want to copy everything from the prod-server to the backup server using rsync. 1 How can I setup a cronjob to do this everyday. 2. What files or folders should NOT be copied (for example the IP address information is different on both machines). How can I accomplish this.
Please be very specific as to what I have to do on the prod-server and on the backup-server. Both the servers are on the same network.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rsync -Haloptuvrz /mnt/partition remote-hoste:/rsynced-data

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
aspnetdevAuthor Commented:
how can I copy all the partitions in one shot using rsync? What happens if a file is open on the server which is being copied?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Distributions

From novice to tech pro — start learning today.