sync repo.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
# The name of the product
|
||||
PRODUCT=Confluence
|
||||
BACKUP_VARS_FILE=${BACKUP_VARS_FILE:-"${SCRIPT_DIR}"/confluence.diy-backup.vars.sh}
|
||||
BACKUP_VARS_FILE=${BACKUP_VARS_FILE:-"${SCRIPT_DIR}"/vars.sh}
|
||||
PATH=$PATH:/sbin:/usr/sbin:/usr/local/bin
|
||||
TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
|
||||
|
||||
@@ -34,22 +34,6 @@ function backup_start {
|
||||
return
|
||||
fi
|
||||
|
||||
# local backup_response=$(run curl ${CURL_OPTIONS} -u "${CONFLUENCE_BACKUP_USER}:${CONFLUENCE_BACKUP_PASS}" -X POST -H \
|
||||
# "X-Atlassian-Maintenance-Token: ${CONFLUENCE_LOCK_TOKEN}" -H "Accept: application/json" \
|
||||
# -H "Content-type: application/json" "${CONFLUENCE_URL}/mvc/admin/backups?external=true")
|
||||
# if [ -z "${backup_response}" ]; then
|
||||
# bail "Unable to enter backup mode. POST to '${CONFLUENCE_URL}/mvc/admin/backups?external=true' \
|
||||
# returned '${backup_response}'"
|
||||
# fi
|
||||
|
||||
# CONFLUENCE_BACKUP_TOKEN=$(echo "${backup_response}" | jq -r ".cancelToken" | tr -d '\r')
|
||||
# if [ -z "${CONFLUENCE_BACKUP_TOKEN}" ]; then
|
||||
# bail "Unable to enter backup mode. Could not find 'cancelToken' in response '${backup_response}'"
|
||||
# fi
|
||||
|
||||
# info "Confluence server is now preparing for backup. If the backup task is cancelled, Confluence Server should be notified that backup was terminated by executing the following command:"
|
||||
# info " curl -u ... -X POST -H 'Content-type:application/json' '${CONFLUENCE_URL}/mvc/maintenance?token=${CONFLUENCE_BACKUP_TOKEN}'"
|
||||
# info "This will also terminate the backup process in Confluence Server. Note that this will not unlock Confluence Server from maintenance mode."
|
||||
info "Confluence backup started."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user