Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Unable to get `backup` file from the example sh file given to interact with api-v3

Unable to get `backup` file from the example sh file given to interact with api-v3

Added by Rishabh Sharma almost 2 years ago

My plan is to make a backup and upload it to the aws bucket

I tried to geenerate & download a backup file using the api method, whose example sh file has been given at this page. I gave the correct api_key, backup_token and domain. It throws this response backup-via-apiv3.sh: 1: jq: not found 

API documentation doesn't seem to have any expanded knowledge or a better documentation to the backup section itself.

What should I do?


Replies (1)

RE: Unable to get `backup` file from the example sh file given to interact with api-v3 - Added by Jan H almost 2 years ago

Have you checked, if the script itself is correct? For example the following line may miss the quotes after the jq command for getting the status from the JSON response: if [[ "`cat response.json | jq .status`" != '"success"' ]]; then That's a wild guess on my side so, since I have never done any shell scripting.

Besides your initial intention on how to get backups. Have you considered alternatives to the API approach? For example you can create cronjobs to create your backups and push your backup files to another location. With this approach you can create and manage your backups with only a few commands.

  • (1 - 1/1)
Loading...