1.使用指令備份和還原
只需要將 JENKINS_HOME 所指的目錄內所有資料複製起來即可完成備份,
如JENKINS_HOME=/home/jenkins ,就把/home/jenkins所有資料複製起來,備份和還原時儘量先停止jenkins (/etc/init.d/jenkins stop)
Backup:
1.先登入 root 權限
2.建立並移動到備份用的資料夾
mkdir jenkins_backup cd jenkins_backup
3.複製所有JENKINS_HOME 所有資料夾
cp -adr /home/jenkins/* ./ (為jenkins_backup)
Restore:
1.先登入 root 權限
2.移動到放置所有備份資料的資料夾中
cd jenkins_backup
3.複製備份檔到 JENKINS_HOME 所指資料夾
cp -adr ./* /home/jenkins/
2.使用ThinBackup備份及還原jenkins
Install :
登入jenkins -> 管理 Jenkins -> 管理外掛 -> 過濾條件輸入thinBackup -> 勾選安奘選項開始安裝 -> 頁面會提示安裝流程,完成後需要重新開啟jenkins
Setup :
登入jenkins -> 管理 Jenkins -> ThinBackup -> Settings -> Backup directory(填入備份檔放置路徑) ,還有其他選項可以調整如定時備份等等
Backup :
登入jenkins -> 管理 Jenkins -> ThinBackup -> Backup Now -> 在放置的路徑下就會產生備份檔
Restore :
登入jenkins -> 管理 Jenkins -> ThinBackup -> Restore -> 選擇備份檔案
professional Article Writing service
9 4 月, 2015 3:39 上午Good post. I learn something totally new and challenging on blogs I stumbleupon everyday. It’s always interesting to read through content from other authors and use a little something from other websites.
Btw – Hope you are generating enough revenue online from your site? For hundreds of thousands of people internet is the main revenue stream. I don’t just create a blog, I love building a web business out of my every weblog. This website has helped me to make tens of thousands more online so I suggest you to go to this web site to download your turnkey profit pulling web business to generate more online revenue. Wish you more success, Kind regards!