Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tar automation

Status
Not open for further replies.

pranesh11

Technical User
Dec 4, 2003
50
IN

Hi,

I would like schedule weekly backup on my rs/600 server ( aix 4.3) on my tape (rmt0) that is on every friday at 11am . How o i do it.. iam newbie on aix. on solaris i can create a file with the name back.sh within that can give the command tar -cvf /dev/rmt0 /data /home and then in /var/wpool/cron/crontabs/root i can put an entry for the same.. but in aix where can i put the entry for cron i mean in which file and also for every friday at 11am what entery i need to put in cron.. and if the backup is success will i get any messg on some logfile? kindly advice..
thanks
 
With AIX you can do a mksysb. Do a man on mksysb to get all the options.
 

Thanks it was helpful, how do i redirect the o/p to a logfile , i mean error / unsuccessful operation, if tar backup completes it shd say some messg in a logfile and if it fails due to any reason it shd say something else.. how do i do this?, i will create a file called back.sh and put this command tar -cvf /dev/rmt0 /home /var and then i cron i will mention this file name with path with some time for execution, how to redirect success / fail to a logfile..

Thanks
 
Add stdout and stderr to your crontab entry:-

00 11 * * 5 back.sh 1>back.log 2>&1

Dickie Bird (:)-)))
 


Hi,

After entering the cron entry without rebooting howdo i start the cron daemon?, in other flav of unix we can go to /etc/init.d and ./crond start -- this will start the daemon and on AIX 4.3.3 how do i start the daemon manually without rebooting after entering the entry. thanks
 
You should use crontab -e which performs exactly a kill -reset to the cron daemon if there is an update of the crontab
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top