[opensuse-buildservice] OBS backup
Hi all! I'm currently trying to implement an automatic backup system for our OBS instance. I'm thinking about some kind of cron job that would sync all the needed data to a backup server. I'm just wondering, what do I have to copy in order to be able to fully restore the system? I don't want to backup the binaries that have been built using the OBS, they can be built again if something bad happens. I guess some folders under /srv/obs and a dump of the mysql -database, no? -Johannes -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi again! The worst thing happened.. Before I got the backup processes properly defined, I lost my server file system. I have a backup copy of /srv/obs -folder, but it seems that it is not enough to restore the OBS. Is there anyway I could recreate the databases out of the data that is under /srv/obs? Any help is much appreciated! -Johannes 2011/4/6 Johannes Lahti <johannes@nomasi.com>:
Hi all!
I'm currently trying to implement an automatic backup system for our OBS instance. I'm thinking about some kind of cron job that would sync all the needed data to a backup server. I'm just wondering, what do I have to copy in order to be able to fully restore the system? I don't want to backup the binaries that have been built using the OBS, they can be built again if something bad happens.
I guess some folders under /srv/obs and a dump of the mysql -database, no?
-Johannes
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2011-04-26 15:55:16 +0300, Johannes Lahti wrote:
The worst thing happened.. Before I got the backup processes properly defined, I lost my server file system.
I have a backup copy of /srv/obs -folder, but it seems that it is not enough to restore the OBS. Is there anyway I could recreate the databases out of the data that is under /srv/obs?
To some extent you can recreate the database with the "src/api/script/import" script. It gets the project and package metadata from the backend and adds it to the database (this way it'll also recreate the users). Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
2011/4/26 Marcus Hüwe <suse-tux@gmx.de>:
On 2011-04-26 15:55:16 +0300, Johannes Lahti wrote:
The worst thing happened.. Before I got the backup processes properly defined, I lost my server file system.
I have a backup copy of /srv/obs -folder, but it seems that it is not enough to restore the OBS. Is there anyway I could recreate the databases out of the data that is under /srv/obs?
To some extent you can recreate the database with the "src/api/script/import" script. It gets the project and package metadata from the backend and adds it to the database (this way it'll also recreate the users).
Thank you so much! It seems that I was able to restore the system using this script. I had to recreate remote projects from xml's first and also made some modifications to the script to skip sub projects of remote projects. -Johannes -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Johannes Lahti
-
Marcus Hüwe