That's great Jason, thanks for those pointers.

Richard

Jason Stevens wrote:
Richard,

It's always a good idea to tar up your whole $ZENHOME directory, just in case, before doing something like this.

zenbackup.py will create a tarball that includes your $ZENHOME/etc, $ZENHOME/perf, zeo data and mysql database. You can later use the --restore and --file flags to have zenbackup.py restore that data. zenbackup.py --help will give you some info on usage.

So to do a clean install of zenoss via svn while preserving your data the steps are something like this:
1. stop zenoss
2. tar up your $ZENHOME dir and stick it someplace safe.
3. Maybe also do a mysqldump of your mysql data and stash it away too. (make sure to use --routines flag) 4. Run zenbackup and use --file to specify a location outside $ZENHOME (/tmp/zenbackup.tgz, for instance.)
5. Delete or rename your $ZENHOME dir
6. create a new $ZENHOME with appropriate ownership
7. do a fresh checkout of inst somewhere other than within $ZENHOME
8. run inst/install.sh
9. stop zenoss
10. run zenbackup with the --restore option and using --file to point at the backup file from step 4.
11. start zenoss

That's off the top off my head. As long as you have the dumps from steps 2 and 3 you can always get back to your original state in case things go awry.

-jason

On Feb 1, 2007, at 8:48 AM, Baird, Josh wrote:

Have a look at the $ZENHOME/bin/zenbackup.py script.  It will create a
backup tarball for you in $ZENHOME/backups.

Josh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of R J Thompson
Sent: Thursday, February 01, 2007 6:08 AM
To: General discussion of using zenoss system
Subject: [zenoss-users] Backup/Restore of configuration

Hello

What is the best way of migrating the configuration of Zenoss to a new
system, a backup of the current system and restore to a new system, is
this possible?

Cheers

Richard

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users


_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to