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

Annotation of /trunk/etc/cron.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 309 - (hide annotations)
Sun Jan 29 14:43:06 2006 UTC (18 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 349 byte(s)
require instance name

1 dpavlin 298 #!/bin/sh
2    
3     instance=$1
4    
5 dpavlin 307 if [ -z "$instance" ] ; then
6 dpavlin 309 echo "usage: $0 backuppc-instance"
7     exit 1;
8 dpavlin 298 fi
9    
10     log="/data/$instance/log"
11    
12     echo "Working on $instance"
13     test -d $log || mkdir $log || exit 1
14 dpavlin 309 ( /data/$instance/bin/BackupPC_updatedb 2>&1 ) | tee $log/updatedb.log
15     ( /data/$instance/bin/BackupPC_incPartsUpdate 2>&1 ) | tee $log/incPartsUpdate.log
16 dpavlin 298

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26