-
Notifications
You must be signed in to change notification settings - Fork 72
/
onedriveb.cfg
26 lines (21 loc) · 931 Bytes
/
onedriveb.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
export refresh_token_file="${script_base_folder}/.refresh_token"
# Authentication config
export api_client_id=""
export api_client_secret=""
export api_reply_url="https://onedrive.live.com/about/business/"
# Upload config
# API root folder: One of ["root", "special/approot", "items/FOLDERID"]
export api_root_folder="root"
export max_upload_threads=2
export max_simple_upload_size=104857600
# When uploading large files (>100MB) this is the max chunk size in bytes
# According to the official api this should be a multiple of 320 KiB (320 * 1024 bytes)
export max_chunk_size=10158080
# Error handling
# Retry every failed request (Timeout, 5xx) 3 times
export http_retries=3
# Retry every failed chunk upload (!= 200, 201, 202, 204) 5 times
# Back off strategy: https://developers.google.com/drive/v3/web/manage-uploads#exp-backoff
export chunk_retries=5
# Retry every failed file (!= 200, 201) 3 times
export file_retries=3