-
Notifications
You must be signed in to change notification settings - Fork 440
Importing database dumps
Saray Cabrera Padrón edited this page Apr 6, 2020
·
6 revisions
We now have a dedicated script to import database dumps for testing purpose. It is located in open-build-service/src/api/script/import_database.rb
.
- To download and import a dump from a remote host you need to specify the remote server in
src/api/config/options.yml
, (backup_server, backup_user, backup_location, backup_filename). In the production machine we can find daily backups in/home/obsdbbackup/backup/
. -
./open-build-service/src/api/script/import_database.rb --all
will download the database dump from the remote server and stores it insrc/api/db/data/
. Finally it will import it into yourapi_development
MySQL database. - If you don't want to download the dump from a remote server, you place the dump in
src/api/db/data/
and run./open-build-service/src/api/script/import_database.rb --import
- For more options see
./open-build-service/src/api/script/import_database.rb --help
Depending on the size of the dump it can last 10-15 minutes to download and import.
- Development Environment Overview
- Development Environment Tips & Tricks
- Spec-Tips
- Code Style
- Rubocop
- Testing with VCR
- Authentication
- Authorization
- Autocomplete
- BS Requests
- Events
- ProjectLog
- Notifications
- Feature Toggles
- Build Results
- Attrib classes
- Flags
- The BackendPackage Cache
- Maintenance classes
- Cloud uploader
- Delayed Jobs
- Staging Workflow
- StatusHistory
- OBS API
- Owner Search
- Search
- Links
- Distributions
- Repository
- Data Migrations
- next_rails
- Ruby Update
- Rails Profiling
- Installing a local LDAP-server
- Remote Pairing Setup Guide
- Factory Dashboard
- osc
- Setup an OBS Development Environment on macOS
- Run OpenQA smoketest locally
- Responsive Guidelines
- Importing database dumps
- Problem Statement & Solution
- Kickoff New Stuff
- New Swagger API doc
- Documentation and Communication
- GitHub Actions
- How to Introduce Software Design Patterns
- Query Objects
- Services
- View Components
- RFC: Core Components
- RFC: Decorator Pattern
- RFC: Backend models