Create a new folder with read/write permission for Jenkins.
$ mkdir backup_jenkins
$ chown jenkins:jenkins backup_jenkins/
Now install the Jenkins Plugin “ThinBackup”.
After installation and restart, you can start with backup configuration “Manage Jenkins > ThinBackup > Settings”. For Backup directory insert the path for directory that you created. Complete the configuration by your needs and press “Save” button.
Now you could wait for 1st automated backup or press the “Backup Now” button “Manage Jenkins > ThinBackup”.
For restore simply select Restore “Manage Jenkins > ThinBackup”. Select backup from list and press “Restore” button.