Script for downloading files from aws.amazon.com
docker run -v <the path to the downloaded files>:/downloader/tmp \
-e S3_KEY=<is a public s3 key for getting files> \
-e S3_PRIVATE_KEY=<is a private s3 key for getting files> onlyoffice/s3_file_downloader:latest
Open CMD as administrator and insert the command
docker run -v %USERPROFILE%\Downloads\s3_files:/downloader/tmp ^
-e S3_KEY=<is a public s3 key for getting files> ^
-e S3_PRIVATE_KEY=<is a private s3 key for getting files> onlyoffice/s3_file_downloader:latest
the files will be downloaded to Downloads\s3_files folder
-e EXT=<download extension>
- To download files by extension.
-e THREADS=<download extension>
- Sets the number of threads to download files.
By default 8.
An example of a startup with additional options
-
For linux
docker run -v <the path to the downloaded files>:/downloader/tmp \ -e S3_KEY=<is a public s3 key for getting files> \ -e S3_PRIVATE_KEY=<is a private s3 key for getting files> \ -e EXT=ppt onlyoffice/s3_file_downloader:latest \ -e THREADS=12
-
For Windows
docker run -v <the path to the downloaded files>:/downloader/tmp ^ -e S3_KEY=<is a public s3 key for getting files> ^ -e S3_PRIVATE_KEY=<is a private s3 key for getting files> ^ -e EXT=ppt onlyoffice/s3_file_downloader:latest ^ -e THREADS=12
- Ruby
bundle install
To change the number of file download threads,
change the threads
parameter in ./config.json
.
rake download[all]
- To download all files
rake download[file]
- To download files. Reading the array of files comes
from ./data/files_to_download.list
rake download[ext,your extension]
- To download files by extension.
You must specify the extension, the second parameter.
rake download[arrext]
- To download files by extensions from array.
The array is in the file ./config.json
. Change extensions_array
.
rake download[arrfile]
- To download files by file names from array.
The array is in the file ./config.json
. Change file_names_array
.