create a team called cron Download cron Make sure that cron is executable chmod 765 /home/cron/Files/cron telnet to server & create a dir in \\server\bootdisk mkdir etc cd dir to etc open vi editor press insert key & copy the below for cron to start #!/bin/sh /home/cron/Files/cron reboot server for cron to load Confirm that cron loaded: From a telnet prompt or a console command prompt type: ps aux | grep cron Should look like the below: _root 5054 0.0 0.1 1744 588 ? S 18:22 0:00 /home/cron/Files/cron _root 4579 0.0 0.0 1464 468 ttyp0 R 18:33 0:00 grep cron you can also type: ps -C cron it will look something like this: PID TTY TIME CMD 9003 ? 00:00:00 cron Enter the following command: touch /home/cron/Files/crontab (We won’t actually be using the crontab file, but cron will look for it and complain if it isn’t there.) Next you have to create a new folder /home/cron/Files/crontabs to hold a file called _root. The _root file will hold a list of the jobs that will run with root privileges. To run a cron job as another user create a file by the users name in the crontabs folder. To create the crontabs directory type: mkdir /home/cron/Files/crontabs Create the _root file by typing: touch /home/cron/Files/crontabs/_root Next change the permissions on the _root file by typing: chmod 600 /home/cron/Files/crontabs/_root _root file should contain something like this: 14 0,1,2,3,4,5 * * 1-7 /home/cron/bin/rsync.sh (it will run rysnc 14 minutes into each hour 12, 1, 2, 3, 4, & 5 am Monday - Sunday) Now create a directory call "bin" mkdir /home/cron/bin now cd to /home/cron/bin & Create a script file it "Im calling my script file rsync.sh" I inputed the below for server1 to rsync to server2 On the below example I have the same team names on both servers but you also need to give the recipient server teams a password as you are going to push data from server 1) This means you have to give the server2 teams a CAL) My rsync.sh scrip contains the following: #!/bin/sh RSYNC_PASSWORD=***** export RSYNC_PASSWORD rsync -zrlptgOoDPv /home/gnb/Files/* gnb@192.168.0.1::gnb/ RSYNC_PASSWORD=****** export RSYNC_PASSWORD rsync -zrlptgOoDPv /home/gnb1/Files/* gnb1@192.168.0.1::gnb1/ RSYNC_PASSWORD=****** export RSYNC_PASSWORD rsync -zrlptgOoDPv /home/gnb2/Files/* gnb2@192.168.0.1::gnb2/ RSYNC_PASSWORD=***** export RSYNC_PASSWORD rsync -zrlptgOoDPv /home/gnb3/Files/* gnb3@192.168.0.1::gnb3/ RSYNC_PASSWORD=****** export RSYNC_PASSWORD rsync -zrlptgOoDPv /home/actg/Files/* actg@192.168.0.1::actg/ We’ll then make the file executable by entering: chmod 770 /home/cron/bin/rsync.sh reboot the server & make sure that cron is running You can put test files on some of the team folders & make sure they copied the following day. to confirm type the below: tail /home/cron/Files/log