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
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