maxhu

Lieutenant Commander
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-10
04:53
1653 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 ??!!
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 ??!!
2 Replies
misha

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-11
06:46
maxhu

Lieutenant Commander
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-01-16
09:41
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
.........................................
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
.........................................