NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Dirvish backup script don't run correct with CronJob ?



Hello Forum
My manuall Dirvish Backupjob starts without error! and the folder appair!

if my Dirvish Backupjob starts with Cron the job is starting but no backup
folders appair on the destination.

Backupscript
hp7900# cat /usr/pkg/etc/dirvish/mybackup
#!/usr/pkg/bin/bash

# /usr/pkg/sbin/dirvish-expire >>/var/log/DirVishExp.txt
/usr/pkg/sbin/dirvish-runall >/var/log/DirVishRun.txt

permission
hp7900# ls -la /usr/pkg/etc/dirvish/mybackup 
-rwxr-xr-x  1 root  wheel  132 Feb 17 19:05 /usr/pkg/etc/dirvish/mybackup

you see i try more than one possibilities but without success.
the folder on my destination dont appair!

hp7900# ls -la |grep DIRVISH
# DIRVISH BACKUP
#0      4       *       *       *       /usr/pkg/sbin/dirvish-expire 
>/var/log/dirvish-expire.txt
15      19      *       *       *       /usr/pkg/bin/bash 
/usr/pkg/sbin/dirvish-runall >/var/log/dirvish-runall.txt
45      19      *       *       *       /bin/sh /usr/pkg/etc/dirvish/mybackup 
05      21      *       *       *       /bin/sh /usr/pkg/etc/dirvish/mybackup 
2>&1

cron seems to be run without error
Feb 17 19:43:23 hp7900 crontab[864]: (root) LIST (root)
Feb 17 19:45:00 hp7900 cron[28852]: (root) CMD START (/bin/sh 
/usr/pkg/etc/dirvish/mybackup )
Feb 17 19:45:00 hp7900 cron[2451]: (root) CMD FINISH (/bin/sh 
/usr/pkg/etc/dirvish/mybackup )
Feb 17 19:50:00 hp7900 cron[6462]: (root) CMD START (/usr/libexec/atrun)
Feb 17 19:50:00 hp7900 cron[3195]: (root) CMD FINISH (/usr/libexec/atrun)
Feb 17 21:02:00 hp7900 cron[466]: (root) RELOAD (tabs/root)
Feb 17 21:05:00 hp7900 cron[3643]: (root) CMD START (/bin/sh 
/usr/pkg/etc/dirvish/mybackup 2>&1)
Feb 17 21:05:00 hp7900 cron[6000]: (root) CMD FINISH (/bin/sh 
/usr/pkg/etc/dirvish/mybackup 2>&1)

hp7900# cat DirVishRun.txt
21:05:00 dirvish --vault Save
21:05:00 done

for any help i'am happy
regards
Mauri


Home | Main Index | Thread Index | Old Index