Skip to content

Commit

Permalink
docs: add -a flag to preserve ownership (#153)
Browse files Browse the repository at this point in the history
* add -a flag to preserve ownership

* fix spacing
  • Loading branch information
yanksyoon committed May 29, 2024
1 parent ae4353d commit 678e689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/how-to/backup-and-restore-jenkins.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ You now have the compressed Jenkins data on your host system.
JENKINS_UNIT=jenkins-k8s/0
juju scp --container jenkins ./jenkins_backup.tar.gz $JENKINS_UNIT:/jenkins_backup.tar.gz
juju ssh --container jenkins $JENKINS_UNIT tar zxvf jenkins_backup.tar.gz
juju ssh --container jenkins $JENKINS_UNIT chown -R 2000:2000 /backup
juju ssh --container jenkins $JENKINS_UNIT cp -aR /backup/* /var/lib/jenkins
juju ssh --container jenkins $JENKINS_UNIT chown -R jenkins:jenkins /backup
juju ssh --container jenkins $JENKINS_UNIT cp -avR /backup/* /var/lib/jenkins
juju ssh --container jenkins $JENKINS_UNIT rm -rf /backup /jenkins_backup.tar.gz
```
2. Restart pebble for the changes to take effect
Expand Down

0 comments on commit 678e689

Please sign in to comment.