Do not perform any operation on RPM packages during manual backup and rollback;
otherwise, the RPM packages will be lost.
Procedure
- Check the IMSS 7.1 SP2 Patch 1 components installed on
your server.The following table lists the detailed mapping relationships between component names and home folders.Component NameHome Folderimss-7.1
$IMSS_HOMEimsscctrl$IMSS_HOME
Note
This home folder exists only on the parent server.imsseuq$IMSS_HOMEnrs$NRS_HOMEipprofiler$IPP_HOME
Note
If you do not know the home folder, run the following command:rpm -ql Components Name|tee 2|head -1 - Stop the cron service and back up IMSS
7.1 settings.
-
If your operating system is Red Hat 7 or higher, run the following commands:
systemctl stop crond.servicecrontab -l >cronlist.bak -
If your operating system is lower than Red Hat 7, run the following commands:
service crond stopcrontab -l >cronlist.bak
-
- Stop IMSS 7.1 message traffic for approximately 5 minutes.
- Stop all IMSS 7.1 processes using the following
commands:
$IMSS_HOME/imss/script/imssstop.sh stop$NRS_HOME/nrs/imssstop.sh$IPP_HOME/ipprofiler/script/imssstop.sh - Back up the Postfix configuration files using the following command:
tar cvf postfix_config.tar /etc/postfix - Back up the home folder for all IMSS 7.1 components
installed.
tar cvf imss71.tar /$IMSS_HOME/imsstar cvf nrs.tar /$NRS_HOME/nrstar cvf ipprofiler.tar /$IPP_HOME/ipprofiler - If IMSS 7.1 is not installed in the default path and uses
the internal database, back up the database using the following command:
tar cvf default_path_folder.tar /opt/trend/imss - Back up the RPM database-related data using the following command:
tar cvf rpm.tar /var/lib/rpm - Back up the IMSS 7.1 database.
-
If you use the IMSS 7.1 bundled PostgreSQL to manage the database, complete the following:
-
Stop the PostgreSQL server using the following command:
$IMSS_HOME/imss/script/dbctl.sh stop -
Back up the PostgreSQL data using the following command:
tar cvf imssdb.tar /var/imss
-
-
If you use your own PostgreSQL server to manage the IMSS 7.1 database, perform either a cold physical backup or a hot logical backup.
-
