ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Tags
    3. tar
    Log in to post
    • All categories
    • DustinB3403

      Unsolved Tar gzip file compression calculation without decompressing the file
      IT Discussion • tar gzip unix apple osx • • DustinB3403

      20
      0
      Votes
      20
      Posts
      661
      Views

      Pete.S

      @DustinB3403 said in Tar gzip file compression calculation without decompressing the file:

      @Pete-S So the simplest way I can think to explain this would be like this.

      You have a network share which is relatively organized

      You create a compressed tarball of any folder on that share and then move that tarball to offsite storage.

      How would I realistically get a hash of that folder pre and post tar and compression and have it make sense? They aren't the same thing, even if they contain the same things.

      @Pete-S said in Tar gzip file compression calculation without decompressing the file:

      Is it safe to assume that the gzip file is correct when it is created?

      This is what I'm looking to verify 🙂

      I'm assuming that files are static during backup.

      If you first of all run md5deep on all files in the folder, you'll create a textfile that contains md5 (or sha256 or what you want) signatures on every file in the folder. Place it into the folder so it ends up inside the backup and you'll always have the ability to verify any uncompressed individual file.

      If you really want to verify your tar.gz file after it's created I think you have to decompress the files to a temporary folder, run md5deep on the files to compare them with the original file. What you really are testing is that the backup-compress-decompress-restore operation is lossless on every file. It should be by design, but if there is an unlikely bug somewhere it's technically possible that it might not be.

      If you use the gzip compression with tar, gzip has a CRC-32 checksum inside that can be used to verify the integrity of the gzip file.

      Or to be even more certain you can create an md5 signature of the entire gzip archive with md5sum or md5deep. Then you can always verify that the archive has not been corrupted.

      If you ever need to restore the files you can verify the integrity of the restored files with the md5 you created on the original files, before you did the backup.

    • mlnews

      Windows 10 Spring Update Bit for WSL
      News • windows 10 windows 10 spring update wsl curl tar • • mlnews

      3
      1
      Votes
      3
      Posts
      557
      Views

      JaredBusch

      Here is alist of other updates for it

      https://www.windowscentral.com/windows-10-redstone-4-changelog

    • scottalanmiller

      UNIX: What Is a Tarball
      IT Discussion • tar compression archive tarball linux unix bsd solaris sam linux administration system administration sam freebsd administration • • scottalanmiller

      5
      2
      Votes
      5
      Posts
      2542
      Views

      scottalanmiller

      @JJoyner1985 said in UNIX: What Is a Tarball:

      So, do you think the reason I am seeing a lot more gzip in use with tarballs is due to the familiarity of gzip and the negligible difference in the compression between it and bzip2? Basically, bzip2 doesn't make enough of an improvement with sufficient regularity to entice people to move away from gzip, or is there some other benefit to gzip that my training material hasn't covered?

      That's correct. The difference between the two is generally small enough that people are not concerned. And lots of systems still don't have bzip2 installed by default so if you want scripts or whatever to work universally you often use gzip because you know that it is always there and predictable.

    • scottalanmiller

      Linux: Using tar
      IT Discussion • linux unix bsd tar archiver compression sam linux administration system administration • • scottalanmiller

      1
      2
      Votes
      1
      Posts
      1032
      Views

      No one has replied