/[BackupPC]/trunk/etc/cron.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/etc/cron.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 298 - (show annotations)
Thu Jan 26 17:17:30 2006 UTC (18 years, 3 months ago) by dpavlin
File MIME type: application/x-sh
File size: 353 byte(s)
sample script for usage from cron

1 #!/bin/sh
2
3 instance=$1
4
5 if [ -z "$intance" ] ; then
6 instance="backuppc-agi"
7 echo "using default instance $instance"
8 fi
9
10 log="/data/$instance/log"
11
12 echo "Working on $instance"
13 test -d $log || mkdir $log || exit 1
14 /data/$instance/bin/BackupPC_updatedb 2>&1 > $log/updatedb.log
15 /data/$instance/bin/BackupPC_incPartsUpdate 2>&1 > $log/incPartsUpdate.log
16

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26