Home

Results 1 to 3 of 3

Thread: Backup and restore vibe 4.0.5

Threaded View

  1. #1

    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 ??!!
    Last edited by maxhu; 10-Jan-2019 at 05:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •