I need to backup the cvs server daily.
Can someone help to write a script to
a) stop the cvs server ( inetd)
b) copy files to a NT machine shared folder.
c) start the cvs server (inetd)

I use a similar scheme to backup my main server [linux] to another W2K server. This is done everyday in the following manner.

I have many data, program and user directories under the /home partition. I have created some files which contain the path of groups of directories. This is done so that the backup file does not become to big.
Every morning when the machine is turned on there is a script in /etc/cron.daily which starts to run. This script reads the path files one by one and starts to create the backup files in /var/spool/back2nt. I have used tar+gzip. after every backup file is created it writes a line in another file which is actually a command to move the file to the NT machine.
When all the backup files are created the script checks to see if the NT machine is turned on. If not it exits. If yes it mounts a directory on the NT to which I want to move the backups. Then command file is renamed, made executable and run.
After all the files have been moved to NT the command file is deleted.
If the NT server was not available then I have another script file in /etc/cron.hourly which checks if the command file is available or not. If yes it runs to move the backups.

Apart from this there are a lots of similar backup software available at sourceforge.net. Check out and if need to write your own scripts ask anytime.

Ami




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to