Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8844995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:37:43+00:00 2026-06-14T11:37:43+00:00

The problem backup policies on my network imply giving a path to backup and

  • 0

The problem

backup policies on my network imply giving a path to backup and an optional command to run just before, so that I can prepare the backup

I need to backup my Jenkins configuration. Simply giving a path to the Jenkins data directory is not an option as:

  1. I just need to backup the configuration
  2. the total disk usage for that directory, ~ 80GB, is far beyond reasonable backup size (99% consist of non-critical workspace data)

So far

I installed the Backup Plugin and found reasonably good settings for it. Now I wonder if I can trigger it remotely using a bash script. I understand that using curl on the /jenkins/backup/launchBackup url should do the trick, but I’m getting a 403 Forbidden error as I’m hitting the URI as an anonymous user, and couldn’t find a solution to login or get around this.

So does anyone knows of a simple way to trigger a configuration only backup from the command line ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:37:44+00:00Added an answer on June 14, 2026 at 11:37 am

    The Jenkins wiki describes how to perform an authenticated login in scripts. Short answer: Go to the Configure screen from your user page and get the API token, then use it as your password when running your script.

    I haven’t tried it with the Backup plugin, but it works for running regular builds so it should work for any scriptable invocation.

    Without authentication:

    $ curl http://jenkins:8080/job/my%20job/build
    [ HTML page saying "Authentication required" ]
    

    With authentication:

    $ curl --user dbacher:$MY_API_TOKEN http://jenkins:8080/job/my%20job/build
    [ returns nothing and the build starts ]
    

    Update: fixed the jobs typo, thanks for the comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm constructing a backup script for usage on some servers. The problem is that
I have this code, that uses mysqldump to backup mysql database. The problem is
I have a backup that I run as a scheduled task every night, then
Problem: I have a table that prints out vertical but I would like it
I have no problem with restoring database programatically (in C# using SMO) from backup
My problem is really simple. I have a .bak file that contains one or
I'm testing out the backup and restore of TFS, before migrating to it for
I have a problem that I am unable to resolve. My development team have
The problem is I reinstalled my computer and the backup didn't work so now
My problem : I got a MySQL database that stores a great amount of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.