A simple script to backup/restore configuration, in case a GRIDScaler node needs to be reinstalled/reimaged
This script will backup network and Linux configuration in preparation for GRIDSCaler 4.0 upgrade/reinstall. This script is meant to run on each GRIDSCaler server. The current version of the script supports the standard GS installation, it does not back up configurations for applications not included with original GS installation.
The script can also beuse to migrate configuration from CentOS/RHEL 6.x to CentOS/RHEL 7.x
bash gs-config-backup [-bchs] [-r filename]
-b for backup
-c to clean up recovery archive files. Make sure everything's working before using this option
-r <filename> for restore, must be in the same non-root (i.e. /root is okay, / is not) folder as the script
-s to scan all hosts from /etc/hosts for SSH host keys
This script used the following: ssh-keyscan, tar and awk. Make sure you have those available before running the script.
If you discovered a bug, let me know through email at kpham at ddn dot com or my personal email ppkhoa at gmail dot com.
If you came upon this script, while using GRIDScaler and looking to upgrade, contact DDN Support (support at ddn dot com)
DataDirect Networks, DDN and GRIDScaler are trademarks of DataDirect Networks