Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit ad7a0477 authored by Christophe Chaudier's avatar Christophe Chaudier :rocket:
Browse files

fix: api export uri an rate limites

parent cf2a803b
No related branches found
No related tags found
1 merge request!9Resolve "group tgz export fail : bad file"
Pipeline #2020 passed with warnings
...@@ -164,7 +164,7 @@ _schedule_group_export() { ...@@ -164,7 +164,7 @@ _schedule_group_export() {
_group_export_status() { _group_export_status() {
_api GET "groups/${group_url_encoded}/export/download" | jq -r '.message' | grep 404 \ _api GET "groups/${group_url_encoded}/export/download" | jq -r '.message' | grep 404 \
|| echo finished || echo finished
} }
_wait_group_finished() { _wait_group_finished() {
...@@ -172,11 +172,12 @@ _wait_group_finished() { ...@@ -172,11 +172,12 @@ _wait_group_finished() {
echo "Waiting end of export ..." echo "Waiting end of export ..."
sleep ${WAITING_TIME} sleep ${WAITING_TIME}
done done
sleep 60
} }
_download_group_export() { _download_group_export() {
export_filename="${backup_dir}/$(date +"%Y%m%d_%H%M")_group_${group/\//-}_export.tar.gz" export_filename="${backup_dir}/$(date +"%Y%m%d_%H%M")_group_${group/\//-}_export.tar.gz"
_api GET "group/${group_url_encoded}/export/download" "-o ${export_filename}" _api GET "groups/${group_url_encoded}/export/download" "-o ${export_filename}"
echo "The group was exported :" echo "The group was exported :"
ls -l "${export_filename}" ls -l "${export_filename}"
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment