Forbes India Leader Recognition
e.preventDefault(); // Prevent form submission input.blur(); // remove focus input.value = ""; // optional: clear the input

How to Migrate GitLab from Old server to New Server?

When migrating Gitlab to a new server, you might face many problems like incompatible versions, different OS (so different latest Gitlab version), etc. Before migrating the Gitlab to the new server, we have to make sure that Gitlab in both servers have the same edition and version (e.g If an old server has Gitlab Community edition with version 11.9 then the new server must have the Gitlab Community edition with the 11.9 version) The best way of doing this is to upgrade the old server to the same latest Gitlab version, then back up the Gitlab, followed by the transfer of the backup to the new server. Install the same latest Gitlab version in the new server, and restore it. We have the Gitlab on Linode server and now we move it to the AWS EC2 instance. We follow the below steps for migration.

Steps for Gitlab Migration to AWS server:

1. Check the version of Gitlab on Linode server.

gitlab-rake gitlab:env:info

2. Update the Gitlab to the latest version with the following commands.

apt-get update
apt-get install gitlab-ce
gitlab-ctl reconfigure
gitlab-ctl restart

3. First, we’ll need to back up the gitlab at the Linode server.

gitlab-rake gitlab:backup:create

4. Then, we have to transfer it to the AWS server (EC2 instance) via SCP.

scp /var/opt/gitlab/backups/XXXXXXXXX_gitlab_backup.tar root@NEW_SERVER_IP:/root/

5. At the AWS server, install the latest version of Gitlab as per the steps mentioned in the blog ‘Gitlab Installation On Ubuntu’.

6. After the installation of Gitlab on AWS server, run the Gitlab reconfigure for the first time.

gitlab-ctl reconfigure

7. After the Gitlab is started successfully, stop unicorn and sidekiq processes.

gitlab-ctl stop unicorn
gitlab-ctl stop sidekiq

8. Move the backup to the backup folder.

mv /root/XXXXXXXXX_gitlab_backup.tar /var/opt/gitlab/backups/

9. Run the restore command.

gitlab-rake gitlab:backup:restore BACKUP=XXXXXXXXX

10. Restart Gitlab and check.

gitlab-ctl start
gitlab-rake gitlab:check SANITIZE=true

11. Access Gitlab UI.

Now you can access gitlab through the IP address of the EC2 Instance.

 

Related Posts

Latest Posts

  • All Posts
  • ai/ml
  • CEO India Magazine
  • CMMI level 5 Certification
  • e-learning
  • Fintech
  • gaming
  • Generative AI
  • healthcare
  • manufacturing
  • News
  • OTT
  • Portfolio
  • supply chain
  • travel and hospitality
  • Tudip's AI Hackathon
    •   Back
    • Android
    • iOS
    • Java
    • PHP
    • MEAN
    • Ruby
    • DotNet
    • IoT
    • Cloud
    • Testing
    • Roku
    • CMS
    • Python
We Did It Again: Tudip Successfully Renews Its CMMI Level 5 Certification

We Did It Again: Tudip Successfully Renews Its CMMI Level 5 Certification

June 9, 2026

Nobody around here needed a memo to know something worth celebrating had happened. The message from the CMMI Institute said…

Read More
CEO India Magazine Features Dipti Agrawal: The Woman Behind Intelligent Enterprise Solutions

CEO India Magazine Features Dipti Agrawal: The Woman Behind Intelligent Enterprise Solutions

June 9, 2026

There are moments at work that just stop you in your tracks. Not the big quarterly reviews or the product…

Read More
39 Teams, One Afternoon, Countless Ideas: A Look Inside Tudip’s AI Hackathon

39 Teams, One Afternoon, Countless Ideas: A Look Inside Tudip’s AI Hackathon

June 9, 2026

More than 120 employees across 39 teams came together during Tudip's AI Hackathon to explore how artificial intelligence can solve…

Read More

India

Plot No. 11/2, Phase 3, Hinjewadi Rajiv Gandhi Infotech Park, Pune, India – 411057.
info@tudip.com
+91-96-8990-0537

United States

1999 S. Bascom Ave Suite 700, Campbell CA. 95008, USA.
info@tudip.com
+1-408-216-8162

Canada

64 Caracas Road North York, Toronto Ontario M2K 1B1, Canada.
info@tudip.com

Mexico

Calle Amado Nervo #785 Interior B Colonia Ladron De Guevara 44600 Guadalajara, Jalisco, Mexico.
info@tudip.com

Singapore

77 High Street, #10-12B High Street Plaza, Singapore 179433.
info@tudip.com

Colombia

Cra. 9 # 113-53 Of. 1405 Bogotá D.C., Colombia.
info@tudip.com

UAE

Tudip Information Technologies L.L.C Office No 109, ABU HAIL BUILDING 13, Abu Hail, Dubai, UAE.
info@tudip.com

Nigeria

22 Kumasi Crescent, Wuse 2, Abuja, Nigeria.
info@tudip.com