# Migrate jenkins from one server to another on azure!

**URL:** <https://community.jenkins.io/t/migrate-jenkins-from-one-server-to-another-on-azure/16114>\
**Category:** Ask a question\
**Tags:** question\
**Created:** [June 19, 2024, 9:38am UTC](https://community.jenkins.io/t/migrate-jenkins-from-one-server-to-another-on-azure/16114 "2024-06-19T09:38:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![delaramhamraz](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@delaramhamraz](https://community.jenkins.io/u/delaramhamraz)\
**Post date:** [June 19, 2024, 9:38am UTC](https://community.jenkins.io/t/migrate-jenkins-from-one-server-to-another-on-azure/16114/1 "2024-06-19T09:38:46Z")

</div>

Hello Everyone.

I want to migrate the jenkins I had on an old vm, to a new vm. i installed jenkins and java, the exact same version. and I migrate the jenkins\_home directory but i am missing the datas of my builds for the past year.

I checked to see where /var/lib/jenkins was located:

df -h /var/lib/jenkins

Filesystem Size Used Avail Use% Mounted on  
/dev/sdc1 2.0T 239G 1.7T 13% /mnt/storage  
So I understood that it is located on a separate volume which is mounted on /mnt/storage. however i do not find this directory /var/lib on /mnt/storage.I found a symlink. when i checked:

ls -l /var/lib

lrwxrwxrwx. 1 root root 8 Mar 5 2019 lib → /var/lib  
on my separate volume I have :

lib:  
jenkins  
JENKINS:  
BUILDS  
GIT  
in lib/jenkins, i have everything that exists already on /var/lib/jenkins and in JENKINS/BUILDS I have name of all the jobs and some builds. the number of builds are different than the ones on lib/jenkins/jobs!!!

in JENKINS/GIT , I have files like this : (I am using bitbucket)

auto-weekly-report\_feat\_SSD-1366@tmp  
Can anyone help me figure out the relations between these folders.
