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-dump-tables.sh

    r1386 r1405  
    33. env.sh 
    44 
    5 # db auth: (from env
     5# db auth: (all read in from from env.sh
    66db_u=`get_database_user` 
    77db=`get_database_name` 
    88db_p=`get_database_password` 
     9 
     10root=`get_webserver_root` 
    911 
    1012# optional directory prefix, else drop the backup in ~: 
     
    1517if [ -n "$subdir" ] ; 
    1618then 
    17         startdir=$HOME/$subdir 
     19        startdir=$subdir 
    1820else 
    19         startdir=$HOME 
     21        startdir=$root/_backups 
    2022fi 
    2123 
     
    3739rm -rf $dumpdir 
    3840 
    39 gpg -r jm3 -f $dumpdir.tgz 
     41gpg -r jm3 --encrypt-files $dumpdir.tgz 
    4042rm $dumpdir.tgz 
    4143