Discover Centmin Mod today
Register Now

Different download sizes

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

  1. Jon Snow

    Jon Snow Active Member

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    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

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    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

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    7:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. Jon Snow

    Jon Snow Active Member

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    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

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    7:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Jon Snow

    Jon Snow Active Member

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
  7. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    7:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    look at bytes to be sure
     
  8. Jon Snow

    Jon Snow Active Member

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    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

    53,142
    12,108
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,643
    Local Time:
    7:34 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    766
    157
    43
    Jun 30, 2017
    Ratings:
    +225
    Local Time:
    6:34 PM
    Nginx 1.13.9
    MariaDB 10.1.31
    Awesome. So everything is fine then.