Hi All
I want to download jira cloud backup (which i created for server) and want to download it to a linux server.
I tried
curl -O --user my.name@domain.com:MY_API_TOKEN https://my.atlassian.net/plugins/servlet/export/download/?fileId=xxxxxxx
even tried replacing wget with CURL but not working.
The url i copied from the download link, but it is not working
I have very limited knowledge on this so need some expert guidance.
There's a script for downloading backups from Cloud:
https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/Jira-backup.sh
The curl call they're using is:
curl -s -L -u ${EMAIL}:${API_TOKEN} -X GET "https://${HOSTNAME}/plugins/servlet/${FILE_NAME}" -o "$DOWNLOAD_FOLDER/JIRA-backup-${TODAY}.zip"
I tested it and the -s (silent) isn't required, nor is the -X GET (by default curl does a GET).
The -L (location) flag is important because it makes sure curl follows redirection. This is required because the download link actually sends you to a different endpoint to get the actual file.
You can use -O, but in this example -o allows you to name the backup file something besides "?fileId=a1234567-1234-1234-1234-dad90e3db603"
The other thing is that your example had my.atlassian.net but it needs to be your HOSTNAME.atlassian.net.
Hi @durga_panda
Hopefully Darryl's answer was able to help you out.
Wanted to also invite you to join our closed group, we are looking at improving the backup/restore experience for customers, and want to make sure people have the ability to provide feedback as we build it, and test our the early MVPs.
https://community.atlassian.com/t5/Backup-Restore/gh-p/backupandrestore
Just click that link, request access, and we'll get you in right away!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.