Complete the code to specify the Jenkins home directory for backup.
JENKINS_HOME=[1]The Jenkins home directory is usually /var/lib/jenkins, which contains all configuration and job data needed for backup.
Complete the command to create a compressed backup archive of the Jenkins home directory.
tar -czf jenkins_backup.tar.gz [1]The tar command creates a compressed archive of the Jenkins home directory /var/lib/jenkins for backup.
Fix the error in the restore command to extract the backup archive to the Jenkins home directory.
tar -xzf jenkins_backup.tar.gz -C [1]The restore command extracts the backup archive into the Jenkins home directory /var/lib/jenkins to restore all data correctly.
Fill both blanks to create a backup script that stops Jenkins, backs up data, and restarts Jenkins.
sudo systemctl [1] jenkins sudo tar -czf jenkins_backup.tar.gz [2] sudo systemctl start jenkins
The script stops Jenkins to avoid data corruption, backs up the Jenkins home directory /var/lib/jenkins, then restarts Jenkins.
Fill all three blanks to create a restore script that stops Jenkins, restores backup, and restarts Jenkins.
sudo systemctl [1] jenkins sudo tar -xzf jenkins_backup.tar.gz -C [2] sudo systemctl [3] jenkins
The restore script stops Jenkins, extracts the backup into the Jenkins home directory /var/lib/jenkins, then restarts Jenkins to apply changes.