atlassian-json/json-backups/update.sh
2021-01-15 00:55:17 +03:00

72 lines
3.4 KiB
Bash
Executable File

#!/bin/bash
rm -rfv $PWD/current $PWD/archived $PWD/eap
mkdir -p $PWD/current $PWD/archived $PWD/eap
###################################################################################################
# Current links
###################################################################################################
# Bamboo
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/bamboo.json
# Bitbucket (Stash)
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/stash.json
# Confluence
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/confluence.json
# Crowd
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/crowd.json
# Crucible
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/crucible.json
# FishEye
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/fisheye.json
# Jira
#wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira.json
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-core.json
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-software.json
wget -c --random-wait -P $PWD/current/ https://my.atlassian.com/download/feeds/current/jira-servicedesk.json
###################################################################################################
# Archived links
###################################################################################################
# Bamboo
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/bamboo.json
# Bitbucket (Stash)
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/stash.json
# Confluence
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/confluence.json
# Crowd
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/crowd.json
# Crucible
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/crucible.json
# FishEye
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/fisheye.json
# Jira
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira.json
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-core.json
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-software.json
wget -c --random-wait -P $PWD/archived/ https://my.atlassian.com/download/feeds/archived/jira-servicedesk.json
###################################################################################################
# EAP links
###################################################################################################
wget -c --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/bamboo.json
wget -c --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/confluence.json
wget -c --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/jira.json
wget -c --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/jira-servicedesk.json
wget -c --random-wait -P $PWD/eap/ https://my.atlassian.com/download/feeds/eap/stash.json