DB Backup and Restore Procedur...
Filesystem Backup and Restore
8 min
prerequisite this procedure requires stopping applications complete all active operations on the instance stopping database replication execute the following commands only on the node where the backup/restore operation is performed check symmetricds replication status \[root\@kronpam ]# /u01/sym/symmetric server 3 10 5/bin/sym service status stop symmetricds replication \[root\@kronpam ]# /u01/sym/symmetric server 3 10 5/bin/sym service stop stopping services stop kron pam module services \[root\@kronpam ]# systemctl stop kron tacacs \[root\@kronpam ]# systemctl stop radiusd \[root\@kronpam ]# systemctl stop guacd \[root\@kronpam ]# systemctl stop netright tomcat \[root\@kronpam ]# systemctl stop mobile tomcat \[root\@kronpam ]# systemctl stop nssoapp \[root\@kronpam ]# systemctl stop sftp prox \[root\@kronpam ]# systemctl stop sqlprox \[root\@kronpam ]# systemctl stop http prox \[root\@kronpam ]# systemctl stop ppas 9 5 backing up filesystem prerequisite check once again that you have enough disk space for backup execute the commands described below with the root user \[root\@kronpam ]# cd / \[root\@kronpam ]# timestamp=`date +%y%m%d %h%m` \[root\@kronpam ]# tar cvpzf backup $timestamp tar gz exclude=/backup $timestamp tar gz exclude=/proc exclude=/lost+found exclude=/media exclude=/mnt restoring filesystem during the restoration, backup files will overwrite the existing files execute the commands described below with the root user \[root\@kronpam ]# cd / \[root\@kronpam ]# tar xvpzf /backup tar gz c / once extraction is complete, recreate directories that were not included in the original archive \[root\@singleconnect ]# mkdir /proc /lost+found /media /mnt after backup operations execute the commands in the 3rd and 4th steps only on the node where the backup operation is performed start services \[root\@kronpam ]# systemctl start kron tacacs \[root\@kronpam ]# systemctl start radiusd \[root\@kronpam ]# systemctl start guacd \[root\@kronpam ]# systemctl start netright tomcat \[root\@kronpam ]# systemctl start mobile tomcat \[root\@kronpam ]# systemctl start nssoapp \[root\@kronpam ]# systemctl start sftp prox \[root\@kronpam ]# systemctl start sqlprox \[root\@kronpam ]# systemctl start http prox \[root\@kronpam ]# systemctl start ppas 9 5 start database replication check symmetricds replication status \[root\@kronpam ]# /u01/sym/symmetric server 3 10 5/bin/sym service status stop symmetricds replication \[root\@kronpam ]# /u01/sym/symmetric server 3 10 5/bin/sym service status