Hi Greg-DB,
What modifications are required to upload large files (~50gb) using curl on a CentOS server? My apologies, I am quite the newbie to bash! This is the code:
curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXX" \
--header "Dropbox-API-Arg: {\"path\": \"/Project_backup/Backup_files.tar.gz\"}" \
--header "Content-Type: application/octet-stream" \
--data-binary @Backup_files.tar.gz
It hangs for a while then I get this error whatever it means....:
\"https://www.dropbox.com/register?_tk=fof\"\u003eF\u00e5 en gratis konto\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e", "id": "\u003cdiv class=\"not-found\"\u003e \u003ch1\u003eKesalahan (4xx)\u003c/h1\u003e Kami tidak dapat menemukan halaman yang Anda cari. \u003cdiv class=\"not-found--links\"\u003e Berikut beberapa tautan yang mungkin bisa membantu: \u003cul\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/home?_tk=fof\"\u003eBeranda\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/help?_tk=fof\"\u003ePusat bantuan\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/login?_tk=fof\"\u003eMasuk\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/register?_tk=fof\"\u003eDapatkan akun gratis\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e", "es": "\u003cdiv class=\"not-found\"\u003e \u003ch1\u003eError (4xx)\u003c/h1\u003e No hemos encontrado la p\u00e1gina que est\u00e1s buscando. \u003cdiv class=\"not-found--links\"\u003e Aqu\u00ed tienes algunos enlaces que tal vez puedan ayudarte: \u003cul\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/home?_tk=fof\"\u003eInicio\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/help?_tk=fof\"\u003eCentro de ayuda\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/login?_tk=fof\"\u003eIniciar sesi\u00f3n\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/register?_tk=fof\"\u003eObtener una cuenta gratis\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/plus?_tk=fof\"\u003eDropbox Plus\u003c/a\u003e\u003c/li\u003e \u003cli\u003e\u003ca href=\"https://www.dropbox.com/business?_tk=fof\"\u003eDropbox Business\u003c/a\u003e\u003c/li\u003e \u003c/ul\u003e \u003c/div\u003e \u003c/div\u003e"};
function read_cookie (name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for (var i = 0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1, c.length);
}
if (c.indexOf(nameEQ) === 0) {
return c.substring(nameEQ.length, c.length);
}
}
return null;
}
function localize() {
var locale = read_cookie('locale');
if (locale) {
var msg = message[locale];
if (msg) {
var elem = document.getElementById('errorbox');
if (elem) {
elem.innerHTML = msg;
}
}
}
}
localize();
</script>
</body>
</html>
Thank you for your help!!!
Warm regards