Hi,
I am a linux newbie and I dont have any knowledge on scripting but this is my urgent requirement. I am suppose to write a backup script for 2 of my servers, could someone help me out please. below is my requirement
Mail Server 1 : 10.0.0.1 Mail Server 2 : 10.0.0.2 Backup Server : 192.0.0.1
1. Mail Server 1 & 2 must take daily backups of /var and /etc and store them locally.
2. These backups must be moved to Backup Server on daily basis, once the above local backup is done.
3. Mail Server 1 & 2 must store backups for 7 days and later remove them.
4. Backup Server must store backup for 3 months and later remove them.
5. Files must be stored in tar.gz format.
6. I need the script in such a way that I can add directorys in future.
7. Once the backup is performed, need to send a confirmation mail that its been completed successfully to
admin@xyz.com
Also I would like to know what are the important directories we should consider backing up in a mail server. Can you please give me inputs on backup procedures.
Thanks a lot !!!