Thursday, August 4, 2011

backup automation script in linux

sorry for the inconvenience. but the link broke and you wont be able to download the script. I will be updating this soon to a new location with an improved version.

You can download this script by clicking here.
Description:
This script when executed will generate a customized script file according to your backup needs and you just need to execute that script file in your cronjob for your backup process. Upon execution, you will be asked for a series of qns according to which the final script will be generated.
This will also display the line that you need to enter into your cronjob, so all you have to do is:
1. Open cronfile.
crontab -e
2. Paste the cron line that is displayed at the end of executing this script.

PS: cronscript.sh is the name of customized script that is generated at the end of execution and will be stored where you are executing this script. If you change its location after that, change the path in cron entry as well.

Requirements:
1. ncftp package is needed if you are going to use FTP for remote backup. You can install it using yum.
yum install ncftp*

2. If you are using ssh for backup, just make sure that you atleast connect once from the source machine to backup machine using ssh. This is to avoid the extra prompt while cron script tries to connect to remote machine.

Thats all for now. ENjoy!!

0 comments:

Post a Comment