Show
Ignore:
Timestamp:
03/10/07 11:25:40 (2 years ago)
Author:
jm3
Message:

updated configuration setup script to also build our crontab file, so now there are like, ZERO passwords or paths coded anywhere

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • feedmelinks/bin/backup-site.sh

    r1386 r1405  
    1 #!/usr/local/bin/bash 
     1#!/bin/bash 
    22 
    33type=$1 
    4 root=/usr/home/hirokai/FML-BACKUPS/ 
     4. env.sh 
     5 
     6# all read in from from env.sh 
     7root=`get_webserver_root` 
    58 
    69if [ -z "$type" ]; 
    710then 
    8         echo "usage: fml-backup.sh (daily|weekly|monthly)" 
     11        echo "usage: $0 (daily|weekly|monthly)" 
    912        exit 1 
    1013fi 
    1114 
    12 dir=$HOME/$root/$type 
     15dir=$root/_backups/$type 
    1316echo $dir 
    1417 
     
    3740        #mv -f $dir/* /tmp &> /dev/null 
    3841else 
    39         echo "usage: fml-backup.sh (daily|weekly|monthly)" 
     42        echo "usage: $0 (daily|weekly|monthly)" 
    4043        exit 1 
    4144fi 
    4245 
    43 backup-dump-tables.sh $root/$type 
     46backup-dump-tables.sh $dir 
    4447