Skip navigation
86593 Views 10 Replies Latest reply: Jan 19, 2010 11:28 AM by forsberg RSS
arshadkhan20 Rank: White Belt 45 posts since
Jan 9, 2010
Currently Being Moderated

Jan 11, 2010 12:35 AM

How to take Backup of full zenoss configuration and then restore??

How to take Backup of full zenoss configuration and then what are the steps of zenoss restoration.
  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    I believe zenbackup and then a zenrestore would get most everything

    except zenpacks you've installed. To restore, you would make sure your

    system that you're restoring to has the zenpacks installed and then do

    zenrestore ...

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    arshadkhan20 wrote, On 1/11/2010 12:35 AM:

    How to take Backup of full zenoss configuration and then what are the steps of zenoss restoration.

     

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    Is the admin guide not helpful on this?

    http://community.zenoss.org/docs/DOC-3971

     

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    arshadkhan20 wrote, On 1/15/2010 6:10 AM:

    ok...

    but what are the steps of zenoss backup and den restoration?

    >

  • forsberg Rank: White Belt 9 posts since
    Jun 25, 2009

    I recently did a succesful backup /restore and my steps were as described in the admin guide:

    As zenoss user:

    zenbackup --save-mysql-access --file=BACKUPFILENAME

    Then i SCP the BACKUPFILENAME to a server with a fresh zenoss install, same version as the one i took backup from and same zenpacks installed. 

    On the new server i stopped zenoss and as zenoss user:

    zenrestore --file=BACKUPFILENAME

    Then i start zenoss up again and voila.

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    I've never had to do a restore (knock on wood), but my understanding is

    that you'll want to have access to the backup wherever you're restoring.

    Then you'll want to note what Zenpacks you've had installed.

     

    On the restore system, you'll install the same version of Zenoss as the

    backup is from. Then you'll install all the same Zenpacks (same version

    here as well I think). Then you'll run zenrestore from the commandline

    as, I believe, the zenoss user.

     

    I'm sure someone will correct me on details that I haven't personally

    experienced as I've not done a restore.

     

    My Linux admin just takes rsync's of the entire Zenoss folder nightly,

    and also backs up the MySQL instance (I'm not sure how). Our plan would

    be to just copy back the entire folder, though it would be interesting

    to hear if anyone else using Zenoss thinks that is likely or unlikely to

    work...

     

    For disaster recovery, I'm also quite the fan of disk images - I don't

    really have to understand near as much of the app as I do to restore

    backups properly, but of course, YMMV.

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    arshadkhan20 wrote, On 1/16/2010 4:55 AM:

    yeah but

     

    i took manual backup from zenoss webpage reffer to the attached pic......

     

    now i want to know the easy steps how to restore it....i m using OS ubuntu and linux environment is new for me. The admin guide's link u give to me is not fully understandable by me ...so kindly help me in this regards..

    >

  • Gabe Rank: Green Belt 94 posts since
    Jun 29, 2008

    if the database is not huge and if HD space is not an issue.

     

    i suggest you just sudo cp the whole shebang and not bother packing it or running zenbackup, zenrestore or anything like that and save alot of time.

     

    before just remeber to completely shut down zenoss and the mysql instance, check the processes.

     

    also remember the link to the startup script should be on your home dir

     

    .bashrc

     

    rsync as jmp mentioned is also nice

  • jmp242 ZenossMaster 4,060 posts since
    Mar 7, 2007

    Note you've got a space in your path which is breaking the script p[er

    the tar error in the first line. Try double quotes, or rename the path

    to /home/arshad//Desktop/untitled

    folder/bin.tar/home/arshad//Desktop/untitled_folder/bin.tar

     

    However, it is a bit weird that you've got a double slash between arshad

    and Desktop in your path there... that is odd IME. Normally I'd use

    something like

    /tmp/myfolder/bin.tar

    for instance ....

    --

    James Pulver

    Information Technology Area Supervisor

    LEPP Computer Group

    Cornell University

     

     

     

    arshadkhan20 wrote, On 1/19/2010 12:24 AM:

    ok...when i had tried follwing error is come....

     

    in UNTITLED FOLDER i have zenoss backup as (zenbackup_20100109.tgz)....

    i also tried wid unrar to zenbackup_20100109.tgz file

     

    root@arshad-desktop:~# /usr/local/zenoss/zenoss/bin/zenrestore --file=/home/arshad//Desktop/untitled folder/zenbackup_20100109.tgz

    or

    root@arshad-desktop:~# /usr/local/zenoss/zenoss/bin/zenrestore --file=/home/arshad//Desktop/untitled folder/bin.tar

     

     

    tar: /home/arshad//Desktop/untitled: Cannot open: No such file or directory

    tar: Error is not recoverable: exiting now

    tar: Child returned status 2

    tar: /tmp/tmpqNtPTx: Not found in archive

    tar: Exiting with failure status due to previous errors

     

    >

  • forsberg Rank: White Belt 9 posts since
    Jun 25, 2009

    Remember to do the thing as zenoss user

     

    #su zenoss

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points