On 03/07/2016 02:45 AM, Phil Evans wrote: > Hi all, > > I've recently inherited an AWS EC2 RHEL 7.1 instance running GitLab CE > 8.0.3... > > # yum list installed | grep -i gitlab > gitlab-ce.x86_64 8.0.3-ce.1.el7 @gitlab_gitlab-ce > > All Gitlab's components are running on this one server... > > # gitlab-ctl status > run: gitlab-git-http-server: (pid 459) 189813s; run: log: (pid 458) 189813s > run: logrotate: (pid 13571) 2612s; run: log: (pid 466) 189813s > run: nginx: (pid 453) 189813s; run: log: (pid 452) 189813s > run: postgresql: (pid 457) 189813s; run: log: (pid 455) 189813s > run: redis: (pid 463) 189813s; run: log: (pid 460) 189813s > run: sidekiq: (pid 464) 189813s; run: log: (pid 461) 189813s > run: unicorn: (pid 465) 189813s; run: log: (pid 462) 189813s > > > I need to move the postgreSQL database to an RDS instance. > > I'm new to GitLab so I've no idea how to do this! > > Can someone please outline how to do this? > > Or point me to some documentation describing the steps I need to take... > >
You are using Omnibus which is good. The configuration file can be found in `/etc/gitlab/gitlab.rb` and this is where you need to change any settings. Omnibus uses its own bundled postgres server, but you can use an external one, read https://gitlab.com/gitlab-org/omnibus-gitlab/blob/8-0-stable/doc/settings/database.md. >From the top of my head the steps would be: 1. Dump the database locally and transfer it to the remote RDS instance 2. Restore the DB in RDS 3. Make the changes in `/etc/gitlab/gitlab.rb` 4. Run `gitlab-ctl reconfigure` Pay extra attention to the section about the pg_dump and psql binaries in the docs. PS. If this is an option, try to upgrade to the latest GitLab version first. -- Blog: http://axilleas.me -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/56DEA5C7.9050804%40gmail.com. For more options, visit https://groups.google.com/d/optout.