Download the folder, including the subfolder, via wget from the Dropbox link on Unix Server

I have a link to Dropbox, for example https://www.dropbox.com/sh/w4366ttcz6/AAB4kSz3adZ , which opens a site for deleting ususal with folders and files. Is it possible to download the full content (tar or directly as synchronization) on a unix machine using wget? I saw several posts here where individual files were uploaded, but could not find an answer to this question. There is an api from Dropbox, but this does not work on my server due to a 64-bit problem on my server and http://www.dropboxwiki.com/dropbox-addons/dropbox-gallery-download#BASH_Version also does not work for me. ... any other suggestions?

+7
unix folder dropbox download wget
source share
2 answers

This help article describes some options that you can use to get different behaviors from Dropbox shared links:

https://www.dropbox.com/help/201

For example, using this link:

https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa

We can use the dl parameter for direct loading. Using curl, we can download it as such:

 curl -L https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa?dl=1 > download.zip 

(You must use -L to redirect)

Or, using wget, something like:

 wget --max-redirect=20 -O download.zip https://www.dropbox.com/sh/igoku2mqsjqsmx1/AAAeF57DR2ou_nZGC4JPoQKfa 
+10
source share

Yes you can, as this is pretty clear, follow the steps below

First, get the Dropbox sharing link. It will look like https://www.dropbox.com/s/ad2arn440pu77si/test.txt

Then add โ€œ? Dl = 1โ€ to the end of this url and โ€œ-O filenameโ€ so you get something like this: wget https://www.dropbox.com/s/ad2arn440pu77si/test.txt?dl=1 -O test.txt

Now you can easily get files on your Linux.

0
source share

All Articles