Amazon S3 console: download multiple files at once

后端 未结 15 1281
傲寒
傲寒 2021-01-31 07:00

When I log to my S3 console I am unable to download multiple selected files (the WebUI allows downloads only when one file is selected):

https://console

相关标签:
15条回答
  • 2021-01-31 07:30

    In case someone is still looking for an S3 browser and downloader I have just tried Fillezilla Pro (it's a paid version). It worked great.

    I created a connection to S3 with Access key and secret key set up via IAM. Connection was instant and downloading of all folders and files was fast.

    0 讨论(0)
  • 2021-01-31 07:31

    Also you could use the --include "filename" many times in a single command with each time including a different filename within the double quotes, e.g.

    aws s3 mycommand --include "file1" --include "file2"
    

    It will save your time rather than repeating the command to download one file at a time.

    0 讨论(0)
  • 2021-01-31 07:33

    In my case Aur's didn't work and if you're looking for a quick solution to download all files in a folder just using the browser, you can try entering this snippet in your dev console:

    (function() {
        const rows = Array.from(document.querySelectorAll('.fix-width-table tbody tr'));
        const downloadButton = document.querySelector('[data-e2e-id="button-download"]');
        const timeBetweenClicks = 500;
    
        function downloadFiles(remaining) {
            if (!remaining.length) {
                return
            }
    
            const row = remaining[0];
            row.click();
            downloadButton.click();
    
            setTimeout(() => {
                downloadFiles(remaining.slice(1));
            }, timeBetweenClicks)
        }
    
        downloadFiles(rows)
    }())
    
    0 讨论(0)
  • 2021-01-31 07:33

    What I usually do is mount the s3 bucket (with s3fs) in a linux machine and zip the files I need into one, then I just download that file from any pc/browser.

    # mount bucket in file system
    /usr/bin/s3fs s3-bucket -o use_cache=/tmp -o allow_other -o uid=1000 -o mp_umask=002 -o multireq_max=5 /mnt/local-s3-bucket-mount
    
    # zip files into one
    cd /mnt/local-s3-bucket-mount
    zip all-processed-files.zip *.jpg
    
    0 讨论(0)
  • 2021-01-31 07:37

    Also if you are running Windows(tm), WinSCP now allows drag and drop of a selection of multiple files. Including sub-folders.

    Many enterprise workstations will have WinSCP installed for editing files on servers by means of SSH.

    I am not affiliated, I simply think this was really worth doing.

    0 讨论(0)
  • 2021-01-31 07:43

    It is not possible through the AWS Console web user interface. But it's a very simple task if you install AWS CLI. You can check the installation and configuration steps on Installing in the AWS Command Line Interface

    After that you go to the command line:

    aws s3 cp --recursive s3://<bucket>/<folder> <local_folder> 
    

    This will copy all the files from given S3 path to your given local path.

    0 讨论(0)
提交回复
热议问题