To create a backup, you should periodically back up your JENKINS_HOME directory.
This directory contains all the build jobs configurations, slave node configurations, and build history.
To create a backup, copy this directory, or you can also copy a job directory to replicate any job or rename the directory.