Changeset 1386

Show
Ignore:
Timestamp:
03/04/07 18:36:03 (2 years ago)
Author:
jm3
Message:

updated backup scripts with new tables + paths

Files:

Legend:

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

    r669 r1386  
    11#!/bin/sh 
     2 
     3. env.sh 
     4 
     5# db auth: (from env) 
     6db_u=`get_database_user` 
     7db=`get_database_name` 
     8db_p=`get_database_password` 
    29 
    310# optional directory prefix, else drop the backup in ~: 
    411subdir=$1 
    5  
    612 
    713dumpdir=`date +%Y-%m-%d`_db_dump 
     
    1622mkdir -p $startdir 
    1723 
    18 tables="linksMetrics links linksReferers linksGroups linksUsers linksCategoriesXRef
     24tables="links links_tags_xref tags users
    1925 
    2026cd $startdir 
     
    2430for t in $tables 
    2531do 
    26         mysqldump -h db26.pair.com -u hirokai_4 -pMeatLove1 hirokai_jm3DataMart $t > $t.sql 
     32        mysqldump -u $db_u -p$db_p $db $t > $t.sql 
    2733done 
    2834 
  • feedmelinks/bin/backup-site.sh

    r940 r1386  
    4141fi 
    4242 
    43 dump-fml-tables.sh $root/$type 
     43backup-dump-tables.sh $root/$type 
    4444