A folder with many files, such as a season of a series, is easier to download as one file: one click in the browser instead of one per file, and one transfer in your FTP program. Pack the folder on your service over SSH, download the one file and unpack it on your computer. The steps were tested on our demo service with a test folder of 181 MB: three files of random data, which compress as badly as videos do, and three subtitle files in a subfolder.

Connect over SSH first: SSH how to get connected. The other way round, unpacking archives on your service: Unpack RAR, ZIP and 7z Archives on Your Service via SSH.


1. ZIP: Opens on Every Computer

Go to the folder that contains the folder you want to pack, here downloads. Put names with spaces in quotes:

cd ~/downloads
zip -0 -r my-show.zip "My Show"

-r takes the subfolders too. -0 stores the files without compressing them. Videos, music and pictures are already compressed: packing the test folder with compression takes 5.3 seconds and saves nothing, while -0 takes 0.6 seconds. Leave out -0 for folders of text files, which do get smaller.

Check the archive before you download it:

unzip -t my-show.zip

The check ends with No errors detected in compressed data of my-show.zip.

2. tar: The Fastest on Your Service

tar is the usual archive format of Linux and macOS:

cd ~/downloads
tar -cf my-show.tar "My Show"

For the test folder, this takes 0.2 seconds. tar -tf my-show.tar lists what is inside.

3. 7z: Parts and a Password

7z can split a large archive into parts of a fixed size, for example when a long download keeps breaking off. Store the files without compressing them (-mx=0) and split the archive into parts of 1 GB (-v1g):

7z a -mx=0 -v1g my-show.7z "My Show"

This makes my-show.7z.001, my-show.7z.002 and so on. With parts of 50 MB (-v50m), the test folder becomes four parts in 0.2 seconds. Download all parts into one folder and open the first part, .001, with 7-Zip or a similar program. On the service, 7z x with the first part reads all the parts and gives back all the files.

For a password, add -p -mhe=on:

7z a -mx=0 -p -mhe=on my-show.7z "My Show"

7z asks for the password twice (Enter password, Verify password) and does not show it while you type. -mhe=on also hides the names of the files: without the password even the list of files cannot be opened (Can not open encrypted archive. Wrong password?), and with it, all files are listed.

4. Download and Delete the Archive

Download the archive with FileZilla (Download files from server via FTP – FileZilla) or, if it is in downloads, in your browser (Download Your Finished Files in the Browser). The archive takes as much space as the folder, so delete it once it is on your computer:

rm my-show.zip

Good to Know

Was this answer helpful? 0 Users Found This Useful (0 Votes)