There is an official repo for automating backups towards the backup API using either Python or PowerShell.
I'd like to contribute some fixes and such to the repo but it seems that forking is disabled and I cannot spawn a pull request.
Is there any public channel where I can reach the developers and share the code?
Or perhaps get access by the devs to fork their repository?
Hi @Sebastian Claesson ,
Welcome to the Atlassian Community!
The repository is indeed restricted, but usually customers can interact with us (me and my other colleagues maintaining the scripts) by creating an issue in the project:
Once this has been said, can you kindly let us know what you would like to fix so that maybe we can help you out or do it for you?
Hi @Dario B
That works too, but it would be easier if I was able to do a pull request and mark code with comments.
I did a rewrite of the script and conslidated the option to backup confluence and jira in the same powershell script.
I did two concepts..
1) Contains the PowerShell script for the configuration and that dot sources the function
2) Contains the configuration and the function in the same PowerShell script.
I'll post it in my own public repo.
Would love your feedback on it - And if you need an incentive I can absolutely post issues and with a reference to this repo and lines with the fixes! :)
Hi @Dario B
First off thanks heaps providing the PS - i have tried a previous script for Confluence cloud and it ends into a endless loop.
The script you have provided i can't seem to get it to work. The following error occurs:
Exception calling "Add" with "2" argument(s): "The 'Content-Type' header must be modified using the appropriate property or method.
Parameter name: name"
At C:\Installs\Atlassian\Jira Cloud Backup\scripts\backup-atlassian-cloud-with-function.ps1:92 char:9
+ $Request.Headers.Add($_, $Headers[$_])
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : ArgumentException
XSRF check failed
At C:\Installs\Atlassian\Jira Cloud Backup\scripts\backup-atlassian-cloud-with-function.ps1:109 char:9
+ Throw $ErrorStream
+ CategoryInfo : OperationStopped: (XSRF check failed:String) , RuntimeException
+ FullyQualifiedErrorId : XSRF check failed
I got a notification by E-mail about having a reply, however I cannot see it here :)
Seems I lost access to my old repository created for this issue, new code is available at:
Please note that these are just snippets out of my full solution but hopefully it should be enough to work :)
Hello @Dario B ,
I just wrote a CLI tool based on Node.js to manage Atlassian cloud backups. Maybe you want to have a look at it and maybe link to it as an alternative: https://bitbucket.org/addcraftio/atlascloud-backup
Hi @Steffen Müller ,
Thanks a lot for your contribution.
I have linked your solution and the one from @Sebastian Claesson as alternative solutions to the project:
In case the scripts in here don't fit your need, there are a number of alternative solution you can explore:
- PowerShell scripts by Sebastian Claesson
- CLI tool to manage backups for Atlassian Cloud sites by Steffen Müller (based on Node.js, features OpsGenie integration and backup rotation)
Another option is to use Automation for Jira, as explained in the Atlassian Community Article: Automate online site-backups for Jira and Confluence without programming
Please notice none of above solutions is officially supported.
Let me know if there is anything else I can do.
Have a nice weekend.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event