My forum

Community => General Discussion => Topic started by: gregorylock on November 09, 2019, 04:05:45 PM

Title: [Solved] Archiving "Files" Container Question
Post by: gregorylock on November 09, 2019, 04:05:45 PM
In my Dos and Windows days I learned how to pkzip files and directories.  As Windows moved on I continued to use the zip format.

I have several web browser profiles.  I've put in a lot of time creating bookmarks etc.  I decided that I should start archiving my .mozilla and .waterfox directories.  That way I can store them on any formatted usb drives.  I tested this out zipping them and discovered that I get errors.  However some of the other formats seem to work.  I decided to google a list of containers to find out what is the most popular.  Here is what I found. Linux Mint File-Roller (https://community.linuxmint.com/software/view/file-roller) and Wikipedia List of Archive Formats (https://en.wikipedia.org/wiki/List_of_archive_formats)

Here is a list of formats I'm looking at:  .7z .ar .bz2 .cbz .ear .gz .jar .lzma .tar .tar.7z .tar.bz2 .tar.gz .tar.lzma .tar.xz .war .xz

Which one is the most popular in the Linux community?
Title: Re: Archiving "Files" Container Question
Post by: farevildee on November 09, 2019, 04:17:15 PM
for linux from what ive seen mostly uses tar files. not sure if that helps.
Title: Re: Archiving "Files" Container Question
Post by: fchaos on November 09, 2019, 06:57:47 PM
tar was always the standard linux archive format... but these days you should be able to use nearly anything.

I am surprised you are getting errors with zip files, they should work fine. What archiver are you using to create them?
Title: Re: Archiving "Files" Container Question
Post by: Ironclaw on November 10, 2019, 06:41:25 AM
It always depends on having the underlying libraries installed although I thought it would gripe about that.
Title: Re: Archiving "Files" Container Question
Post by: Spatry on November 10, 2019, 07:48:28 AM
Some time ago I compared file compression formats and the two best formats in terms of compressed size are 7z and tar.xz, I use tar.xz for most of my archiving needs.
Title: Re: Archiving "Files" Container Question
Post by: CwF on November 10, 2019, 09:57:37 AM
I've used thunars "Create Archive" a few times, and will use any installed compression.

now I would just copy the directory as is to a usb drive. I'd maybe zip it up if I were sending it across a network. It's not like space is at a premium anymore, larger files are more risky on poor quality usb drives, and we're limited to a 4GB file size on default formatting.

But then my .mozilla directory in this instance is only 28MB.

Without a fully functional 7zFM like utility in Linux I've abandoned using any. I do use file system level compression, and now expand any zipped files into directories, so my perusing is never slowed by an additional click.
Title: Re: Archiving "Files" Container Question
Post by: Ironclaw on November 11, 2019, 01:50:44 PM
7zip is available on Linux, I'd assume that it's in the default repository of practically every distribution out there.
Title: Re: Re: Archiving "Files" Container Question
Post by: Spatry on November 16, 2019, 12:03:12 PM
7zip is available on Linux, I'd assume that it's in the default repository of practically every distribution out there.
I believe all archive managers on said distributions support 7z out of the box.
Title: Re: Archiving "Files" Container Question
Post by: farevildee on November 16, 2019, 01:22:25 PM
there is but it goes by p7zip for the archiving tool
Title: Re: Re: Archiving "Files" Container Question
Post by: gregorylock on November 16, 2019, 06:06:51 PM
tar was always the standard linux archive format... but these days you should be able to use nearly anything.

I am surprised you are getting errors with zip files, they should work fine. What archiver are you using to create them?

Basically @Spatry (https://www.cupoflinux.com/SBB/index.php?action=profile;u=1) answered my question here (https://www.cupoflinux.com/SBB/index.php/topic,6403.msg37234.html#msg37234).

I'm on Xubuntu 18.04. In Thunar File Manager I was trying to use "Create Archive" like @CwF
 (https://www.cupoflinux.com/SBB/index.php?action=profile;u=5289) mentions here (https://www.cupoflinux.com/SBB/index.php/topic,6403.msg37235.html#msg37235) I don't know if this is the same thing or not but my Xubuntu 18.04 has Engrampa Archive Manager installed.
 
Just before I logged in here, I tried "Create Archive" under Thunar again.  This time it made the following zip files just fine. 

Code: [Select]
.mozilla.zip
.waterfox.zip

So I don't know what my problem was the other day. I'm marking this thread as [Solved]
Title: Re: Re: Archiving "Files" Container Question
Post by: fchaos on November 16, 2019, 06:41:05 PM
Basically @Spatry (https://www.cupoflinux.com/SBB/index.php?action=profile;u=1) answered my question here (https://www.cupoflinux.com/SBB/index.php/topic,6403.msg37234.html#msg37234).

I'm on Xubuntu 18.04. In Thunar File Manager I was trying to use "Create Archive" like @CwF
 (https://www.cupoflinux.com/SBB/index.php?action=profile;u=5289) mentions here (https://www.cupoflinux.com/SBB/index.php/topic,6403.msg37235.html#msg37235) I don't know if this is the same thing or not but my Xubuntu 18.04 has Engrampa Archive Manager installed.
  
Just before I logged in here, I tried "Create Archive" under Thunar again.  This time it made the following zip files just fine.  

Code: [Select]
.mozilla.zip
.waterfox.zip

So I don't know what my problem was the other day. I'm marking this thread as [Solved]

Yeah, I believe it's Engrampa in any XFCE version, unless you change it. And yeah, it should be able to make Zip files just fine, always has for me.

Maybe it was just a one time glitch thing.