maxhu Regular Contributor.
Regular Contributor.
1275 views

Backup and restore vibe 4.0.5

I am trying to backup and restore vibe 4.0.5

Use the sh like this

#!/bin/bash
TEMPDIR=/tmp/teamingbackup/
BACKUPDIR=/var/opt/novell/teaming
mkdir -p $TEMPDIR
#Stop Teaming according to Novell Docs (OPTIONAL)
#systemctl stop vibe
systemctl stop vibe
#Make a dump of the SQL Database and copy it to a directory created
#(Password filled with stars 😉
mysqldump -u root -ppassword --all-databases > $TEMPDIR/all_databases.sql
# Copy the relevant Teaming and MySQL Service Files (Lucene is in theTeaming Directory)
cp -r /var/opt/novell/teaming $TEMPDIR
cp -r /var/lib/mysql $TEMPDIR
#Start Teaming (If stopped previously)
systemctl start vibe
#TAR & Compress everything and add today`s date (Only day, so max. of 31 Backups)
tar -cjf $BACKUPDIR/teaming_`date +%d`_backup.tar.bz2 $TEMPDIR
# bzip2 $BACKUPDIR/teaming_`date +%d`_backup.tar.bz2
#nill the temp. Backup Directory
cd $TEMPDIR
rm -rf ./*


and try use the sh to restore the vibe 4.0.5

#!/bin/bash
TEMPDIR=/tmp/teamingbackup/
BACKUPDIR=/var/opt/novell/teaming

#mkdir -p $TEMPDIR
#Stop Teaming according to Novell Docs (OPTIONAL)
#systemctl stop vibe
systemctl stop vibe
#TAR & Compress everything and add today`s date (Only day, so max. of 31 Backups)
tar -xjf ./teaming_*_backup.tar.bz2 -C /

#Make a dump of the SQL Database and copy it to a directory created

# Copy the relevant Teaming and MySQL Service Files (Lucene is in theTeaming Directory)
cp -r $TEMPDIR/teaming /var/opt/novell/teaming
cp -r $TEMPDIR/mysql /var/lib/mysql

#(Password filled with stars 😉
mysqldump -u root -ppassword --all-databases < $TEMPDIR/all_databases.sql
#Start Teaming (If stopped previously)
systemctl start vibe
#nill the temp. Backup Directory
cd $TEMPDIR
rm -rf ./*

but look like it don't work

Is anything I Missing ??!!
0 Likes
2 Replies
misha Contributor.
Contributor.

Re: Backup and restore vibe 4.0.5

Hi
look here
Code verified
0 Likes
Highlighted
maxhu Regular Contributor.
Regular Contributor.

Re: Backup and restore vibe 4.0.5

i have try your way ,but it still don't work.
i have add a new vibe and login with admin ,change password.then logout
use the restore ,then i got..............

HTTP Status 500 – Internal Server Error
Type Exception Report

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.jasypt.exceptions.EncryptionOperationNotPossibleException
org.jasypt.encryption.pbe.StandardPBEByteEncryptor.decryp
.........................................
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.