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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jainpi

Status
Not open for further replies.

jainpi

IS-IT--Management
Oct 27, 2000
5
US
Hi all unixi guys,
i am facing a strange problem. I am using crontab for my full and incremental backups.
-r------- (permission on my crontab file owned by root)
I have written a script which takes following arguments when taking backup

scriptname level /dev/rmt/.. logfilepath hostname
hostdump.sh 0 /dev/rmt/0 /opt/baqckup/logfile hostx
Backup : weekly full, daily incremental

I execute the above hostdump.sh from a cron for full and incr backup. It takes full backup.
Problem is : When i go for incremental backup it i use switch and depending on day of week i give level of backup.
So in the incremental backup file i use variable $level instead of specifying level. But instead of taking backup it gives error missing argument.
If i hardcode level instead of $level it works well.

This is a problem on a specific sparc machine, while same scripts and cron works on all other servers.
CAN U SUGGEST WHAT CAN BE THE PROBLEM WITH CRONTAB

Piyush
 
we use incremental backups on our sparcs here, and we hardcode the day ... never tried doing it any other way (plus we only backup monday to friday (hardly any work done over the weekend)

then again, My boss here is of the opinion that if it aint broke, don't fix it :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top