Welcome to Centmin Mod Community
Become a Member

Different download sizes

Discussion in 'System Administration' started by Jon Snow, Aug 5, 2017.

  1. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    Made a backup of a database that's around 1 GB in size and I tried downloading it through an ftp client. On the ftp client, it says 1.3 GB but when I finish download it to my Windows machine, it says 1.26 GB.

    Does the ftp client drop and miss completing the download or is everything all good?

    Web browsers also fail at completing database backup downloads because they often get stuck at 100% but never gets completed. I've heard web browsers aren't recommended for downloading large files anyway and it's preferred to use ftp clients or download managers.
     
  2. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    This is what the FTP client has recorded :
    Code (Text):
    db_name_here.sql - xxxxxxxxxxxxx bytes transferred in 9 minutes, 557 seconds  
    TYPE I  
    
    No response from server, disconnecting...
    CWD /  
    
    Connect socket #xxx to xxxxxxxxx, port 21...
    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------  

    And when it auto-reconnects, the download completes.
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:20 PM
    Nginx 1.13.x
    MariaDB 5.5
  4. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    I just checked bytes as an option and it says 1,359,839,946 bytes in the ftp client.

    What's strange is, on Windows is says 1.26 GB (1,359,839,946 bytes). The bytes match but not the GB size Windows is reporting from right-clicking and selecting properties.
     
  5. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:20 PM
    Nginx 1.13.x
    MariaDB 5.5
  6. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
  7. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    look at bytes to be sure
     
  8. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    It's the same bytes. Below it (size on disk) shows something different but the size above it is the same as what's shown in the ftp client when I set it to bytes.

    Windows just shows the wrong GB size amount.

    According to Google's embed result for Bytes to GB converter :

    1,359,839,946 bytes = 1.359839946 GB

    And Windows is showing 1.26 GB (not 1.3 GB) when 1,359,839,946 bytes is right beside it.
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,914
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    5:20 PM
    Nginx 1.13.x
    MariaDB 5.5
    that's The Difference Between MiB and MB

    1,359,839,946 bytes by my regular definition of 1024 bytes = 1MB and 1024 megabytes = 1GB, would be 1.26GB. But but GiB definition would be ~1.359GB
     
  10. Jon Snow

    Jon Snow Active Member

    202
    29
    28
    Jun 30, 2017
    Ratings:
    +38
    Local Time:
    3:20 AM
    Nginx 1.13.4
    MariaDB 10.1.26
    Awesome. So everything is fine then.