Docs: bad curl command line example for export download
https://docs.gitlab.com/ee/api/group_import_export.html
The api doesn't support a Content-Disposition filename for a group export. The suggested curl command
curl --header "PRIVATE-TOKEN: <your_access_token>" --remote-header-name \
--remote-name "https://gitlab.example.com/api/v4/groups/1/export/download"
just writes a file "download". Instead, you have to use "--output my_file_name.tar.gz" to explicitly set a file name. Sample
group=1
token=secret
curl --request GET\
--header "PRIVATE-TOKEN: ${token}" \
--output download_group_${group}.tar.gz \
"https://gitlab.example.com/api/v4/groups/${group}/export/download"
Edited by Haris Delalić