How to manually backup SMC
This is a way to backup related files at SMC, can also be used for CMA migration
mkdir /var/tmp/manualbackup
mkdir /var/tmp/manualbackup/conf
mkdir /var/tmp/manualbackup/database
mkdir /var/tmp/manualbackup/conf.cpdir
mkdir /var/tmp/manualbackup/database.cpdir
mkdir /var/tmp/manualbackup/registry
cd $FWDIR/conf
cp -rfL * /var/tmp/manualbackup/conf
cd $FWDIR/database
cp -rfL * /var/tmp/manualbackup/database
cd $CPDIR/conf
cp -rfL * /var/tmp/manualbackup/conf.cpdir
cd $CPDIR/database
cp -rfL * /var/tmp/manualbackup/database.cpdir
cd $CPDIR/registry
cp -rfL * /var/tmp/manualbackup/registry
cd /var/tmp/
gtar -zcvf manualbackup.tgz manualbackup
This is a way to backup related files at SMC, can also be used for CMA migration
mkdir /var/tmp/manualbackup
mkdir /var/tmp/manualbackup/conf
mkdir /var/tmp/manualbackup/database
mkdir /var/tmp/manualbackup/conf.cpdir
mkdir /var/tmp/manualbackup/database.cpdir
mkdir /var/tmp/manualbackup/registry
cd $FWDIR/conf
cp -rfL * /var/tmp/manualbackup/conf
cd $FWDIR/database
cp -rfL * /var/tmp/manualbackup/database
cd $CPDIR/conf
cp -rfL * /var/tmp/manualbackup/conf.cpdir
cd $CPDIR/database
cp -rfL * /var/tmp/manualbackup/database.cpdir
cd $CPDIR/registry
cp -rfL * /var/tmp/manualbackup/registry
cd /var/tmp/
gtar -zcvf manualbackup.tgz manualbackup
No comments:
Post a Comment