How to set Automated backups of your ec2 and rds

How to create automated backups of you ec2 and rds instances