Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Contribute code to the official scripts for Atlassian cloud backups.

Hey!

Repo: https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/


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?

3 answers

@Dario B - Maybe you can help me out? :)

EDIT: moved my reply to a separate answer :)

Like Sebastian Claesson likes this
0 votes
Dario B Atlassian Team Jan 31, 2020

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?

 

Cheers,
Dario

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. 
repo: https://bitbucket.org/sebastiancla/atlassian-cloud-backup/src/master/
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! :)

Like Dario B likes this
Dario B Atlassian Team Feb 04, 2020

Thanks @Sebastian Claesson !

My colleague @Stephen Sifers is the one that wrote the powershell scripts.  I will ask him to review and, in case, incorporate your script. 

Cheers,
Dario

Like Sebastian Claesson likes this

Thanks for the attention @Dario B !

@Stephen Sifers , If you have any questions just let me know! 


Thanks,
Sebastian

Like Dario B likes this

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

 

Thanks

Joe

Hi ,

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:
https://bitbucket.org/sebastianclaesson/atlassian-cloud-backup/src/master/

 

Please note that these are just snippets out of my full solution but hopefully it should be enough to work :) 

Like Dario B likes this

Hi @Sebastian Claesson 

Thanks heaps for replying. We currently don't have any integration with Azure would it be possible to get a PS script that has the destination of backup to be stored locally on the server?

 

Thanks

Joe

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

Dario B Atlassian Team Feb 05, 2021

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:

Alternative Solutions

In case the scripts in here don't fit your need, there are a number of alternative solution you can explore:

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.

 

Cheers,

Dario

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

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 ...

7,073 views 8 28
Join discussion

Community Events

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

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you