Content
You are here:
Unable to get `backup` file from the example sh file given to interact with api-v3
Added by Rishabh Sharma over 1 year 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)
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.