From 5345292cdb4171f178c6addb1d9f7ca0e2c098a6 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 30 Jun 2011 12:08:20 +0000 Subject: [PATCH] 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 --- .../share/xcat/scripts/xcat_db_backup.sh | 18 ------------------ .../share/xcat/scripts/xcat_db_restore.sh | 13 ------------- 2 files changed, 31 deletions(-) delete mode 100755 xCAT-server/share/xcat/scripts/xcat_db_backup.sh delete mode 100755 xCAT-server/share/xcat/scripts/xcat_db_restore.sh diff --git a/xCAT-server/share/xcat/scripts/xcat_db_backup.sh b/xCAT-server/share/xcat/scripts/xcat_db_backup.sh deleted file mode 100755 index 1ff54180f..000000000 --- a/xCAT-server/share/xcat/scripts/xcat_db_backup.sh +++ /dev/null @@ -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 - diff --git a/xCAT-server/share/xcat/scripts/xcat_db_restore.sh b/xCAT-server/share/xcat/scripts/xcat_db_restore.sh deleted file mode 100755 index 173d364b9..000000000 --- a/xCAT-server/share/xcat/scripts/xcat_db_restore.sh +++ /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