Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Automatic Back up of various servers on linux

Automatic Back up of various servers on linux

Ratings:

4.0

(2)
|Views: 254|Likes:
Published by S Bera
This is how I organize my backup of various servers on my SUSE 10.2 Linux server. This is done using crond task. Simple and efficient. It never failed to take backup. You too can harness the power of Linux .....
This is how I organize my backup of various servers on my SUSE 10.2 Linux server. This is done using crond task. Simple and efficient. It never failed to take backup. You too can harness the power of Linux .....

More info:

Published by: S Bera on Apr 14, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as ODT, PDF, TXT or read online from Scribd
See more
See less

09/27/2012

pdf

text

original

 
Scheduled Backup on LinuxThe Objective:
We use lots of crond tasks for making timely back up of ourvarious windows and Linux servers. Some of the windows servers(Runs IIS on windows XP) are switched off at the end of the day(after 17:30 hours as the office closes and the power supply isswitched off.)All the senior executives update these small servers (runningfrom their desktop PCs) during the day. During the daily meetingat 4 pm ,the webpages from these servers are opened and thediscussions are held.(These serves are located athttp://192.168.75.15 and at http://192.168.175.64). (Two of them are shown...)Immediately after discussion the webpages are updated by thesame senior executives again.We have regional control centers all around the country (Mumbai,Delhi, Patna, Hyderabad and Lucknow) which are run round theclock. Now during the night and odd hours (like holidays andweekends) when these small servers are out of service thecontrol room engineers go to the alternate server page and getthe daily dose of the meeting.
How we achieve it:
 The alternate site is located on an Open Suse 10.2 server. (P4 ,2GB RAM and SCSI HDD).The IP address is192.168.175.253. Thefollowing scripts are dumped in an executable shell file saymyscript.shnow in a su create the following directories first> su# cd /mnt# mkdir amita wrcc abtwrcontent of myscript.sh is here
 
#------------------------------------------------------------------------------------------------------------------mount //192.168.175.15/os/mnt/amita -o username=everyone,password=''cp -rfu /mnt/amita/2006-07/ /srv/www/htdocs/my_suse_server_page/2006-07/umount /mnt/amitamount //192.168.175.64/os/mnt/wrcc -ousername=myusername2,password='mypassword2'cp -rfu /mnt/wrcc/2007-08/project*/ /srv/www/htdocs/my_suse_server_page/2007-08/umount /mnt/wrccmount //192.168.175.133/os/mnt/abtwr -ousername=myusername3,password='mypassword3'cp -rfu /mnt/abtwr/2007-08/exbus/Apr*//srv/www/htdocs/my_suse_server_page/abtwr/Apr*/umount /mnt/abtwr#--------------------------------------------------------------------------------------------------------save the myscript.sh file and thenchmod +x myscript.sh The above file is simply going to the various windows servers and then copy(force, overwrite without asking) the various files in the/srv/www/htdocs/my_suse_server_page/ (This is the document root page of thealternate server,which runs round the clock..) and then un mount those drives.At the odd hours these pages will be available athttp://192.168.175.253/my_suse_server_page/
The timely backup:
now we have a crond scheduler like this The file name is say mycrond The content of this file is like this.#--------------------------------------------------------------------------------------------# file name is mycrond# Every day at 10:45 , 15:45 and 17:45 the back up taken.After that the office isclosed.# minute hour day week month owner filename# save the file and then chmod +x mycrond# put this file in /etc/cron.d45 10,15,17 * * * root /home/bera/myscript.sh#----------------------------------------------------------------------------------------------------Now everyday at 10:45 , 13:45 and 17:45 the back up is taken. And after 18:00hours when the executives are gone the alternate page will be working for theregional control centers all across the country. For tape backup or CD backup ,youcan do that from this PC now.Bye,

Activity (3)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Rui_Dong_5478 liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->