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:
parent
5311722c3d
commit
5345292cdb
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user