remove shared backup/restore scripts use dumpxCATdb and restorexCATdb

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2011-06-30 12:08:20 +00:00
parent 5311722c3d
commit 5345292cdb
2 changed files with 0 additions and 31 deletions

View File

@ -1,18 +0,0 @@
#!/bin/sh
#-- script backs up xCAT database to csv files into (newly created) directory
#-- jurij.sikorsky@t-systems.cz
basedir=/scratch/xcat/backup
dirname=$basename/xcatdb-`hostname`-`date +%y%m%d-%H%M%S`
echo $dirname
mkdir $dirname
cd $dirname
for tab in `/opt/xcat/sbin/tabdump`; do
echo $tab
tabdump $tab > $tab.csv
done
cd - > /dev/null

View File

@ -1,13 +0,0 @@
#!/bin/sh
#-- script restores xCAT database from directory with csv files,
#-- created by xcat_db_backup.sh script
#-- jurij.sikorsky@t-systems.cz
dirname=$1
if [[ -z $dirname ]]; then echo "Usage: $0 {backup dir}"; exit 1; fi
for tab in $dirname/*.csv; do
echo $tab
tabrestore $tab
done