Create zip file without compression

I like to backup my main FCP X libraries to Dropbox. But it doesn't seem like a good idea to just move the library there as is, as it's really a folder with the contents hidden. I prefer to move a single zip file. So, I can right-click and click compress, but the library is already compressed. The zip file is only a tiny bit smaller. So is there a way to copy the library into a single file without the compression? I figure it will run a lot more quickly.


I will also post this on the Final Cut Pro board.


Thanks!



iMac Line (2012 and Later)

Posted on Jun 12, 2019 3:08 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 12, 2019 7:44 PM

If the file will be used by another Mac, then you could create Disk Utility disk image container file


Applications -> Utilities -> Disk Utility

Disk Utility -> File -> New Image -> Image from Folder


If you want to just put selected files into the disk image, you can create a Blank Image. Pick Read/Write Sparse image. It will be mounted like a virtual floppy disk. You can then drag and drop the files you want into the image. Right-Click the image and select eject, then you can drag the disk image to Dropbox

61 replies

Jun 12, 2019 9:29 PM in response to dialabrain

Yes, there is. The library is actually a folder that you can open with "show package contents". I prefer to send a single file instead of a directory tree (folder containing other folders). It's more portable and more robust that way. Also, if you just use copy and paste it shows up as a folder on Dropbox. That's really not the way to go. Do you want all your FCP libraries to show up as folders? I don't! They'll look just like all the "real" folders. Who wants that?!


So I've been using Compress on the right-click menu to get it into a single container file, but there's no point compressing what's already compressed (the resultant zip file is barely smaller, and I mean barely). So I want to run zip with no compression. I figure it will run faster. The old command line zip on PC's used to do that. The one in "Terminal" doesn't seem to have that option. The Archive app looks promising, but its options are confusing. I will experiment. There's also gzip and tar, but those won't work in the Finder, I don't think. I think a GUI version of tar would be best. Just put everything in a single container file.

Jun 13, 2019 2:23 PM in response to Barney-15E

Didn't know about Archive. I don't want the zip archive setting, because it's compressing and takes just as long.


The regular archive setting appears to do what I want except it results in a cpio file. I recall reading some caveats about that.


I don't want to run zip in the GUI or the CLI. That's what I'm trying to avoid.


Using "Terminal" reminded me of tar. That's the fastest! And you can untar in the Finder! So I might go with that, as I can add a move-to-Dropbox-folder command to the tar command.


Thanks!

Jun 13, 2019 3:46 PM in response to MrHoffman

" Are you just making more work for yourself? Compressing an already-compressed file isn't a big deal pragmatically, if you're not optimizing for time and computes. Sure, It'll take some extra time and some . . . ."


I don't like it taking so long on large libraries. Besides, I might become too distracted to remember to move it to Dropbox later!


Looks like Archive or tar will be best. It runs the quickest. I can also append a move-to-dropbox command on the same line.


I don't know if I'll be moving libraries en masse to Dropbox. Right now I'm just using it to save a day's work, which is usually only one library. CCC and Bombich and learning about the tangles seems like more work. Thanks anyway.

Jun 17, 2019 11:53 AM in response to HWTech

HWTech wrote:

You may be able to script it (AppleScript or BASH script) so you could at least drag & drop a folder onto the script. I don't know how to add a right-click pop-up menu option for a custom script, but it should be possible. You do need to be careful to add some basic protections into the script in case the script is accidentally activated with invalid items/data.

Thanks.

Jun 24, 2019 5:51 AM in response to betaneptune

lrwxr-xr-x   1        1 Jun 22 19:28 .fcpcache -> .

I was wrong. It is a symbolic link that is messing things up for zip. That lowercase 'L' at the beginning indicates it is a symlink and it points to dot (.) which in a Unix file system is a reference to itself.


I don't know why zip would blindly follow symlinks, but it appears to be doing just that. Or it is not looking that closely at the type of file it is processing.


tar defaults to NOT following symbolic links. You have specify explicit tar options to get it to follow a symbolic link, so it is working as you expect.



With respect to OSD2, MrHoffman is much better qualified. While I a VMS (OpenVMS) user/person that wrote programs that ran on VMS and OpenVMS for about 15 years, I did not work inside the kernel.


As to Unix file systems, they vary in how the various on-disk structures are laid out. Because Unix implements a virtual file system (VFS) layer, only specific concepts needs to be implemented, but how that is done is up to the specified file system implementation.


In the original Bell Labs UNIX™️ file system, a directory entry was exactly 16 bytes long. 2 bytes for the inode number (65,535 files max; as 0 was an unused entry), and 14 bytes for the file name.


But that very flat directory does not cut it for larger file systems. BSD changed to a more variable sized directory entry that allowed for 255 character file names and a 4 byte inode number. But there were serious performance issues when there are too many files in 1 directory (think 100's of thousands and millions, which customers seem to love doing). So many file systems started implementing different fast access methods for looking up a filename, or finding an unused entry that was large enough for the filename to be created, etc... When this variability in directory on-disk layout started happening the VFS layer just stopped allowing non-privileged opening a directory and reading it (this is not universal, as some Unix implementations still allow read access). Instead there are functions that will return directory entries so that shell's can implement file wildcard access, utilities such as zip, tar, find, etc... can walk directory trees. And it allows a mix of file systems to be mounted on the same machine and all the utilities can access it.


There are various Unix internals books around, and generally they include something about the file system, but depending on when they were written and which Unix implementation they are written about, they will have a totally different description of on-disk structures. I've personally worked inside of 3 Unix file system implementations, and studied at least 2 others from the outside looking in. And none of them have been Apple file systems.

Jun 13, 2019 3:47 PM in response to dialabrain

dialabrain wrote:

Actually it's not a folder. It's a Library and works as all Libraries do. FWIW, you can right/control click on an app and select "Show Package Contents" and it will show you its folder structure. That doesn't make apps a folder either. Like I said, I had no trouble copying and then pasting the Library. But carry on.


Actually, it is a folder, or more properly, a directory in Unix.


Regardless, it shows up as a folder on Dropbox. Not something you would want.

Jun 13, 2019 3:49 PM in response to Barney-15E

Barney-15E wrote:

Didn't know about Archive. I don't want the zip archive setting, because it's compressing and takes just as long.
Zip does not compress by default. The Compressed setting creates a compressed zip archive.
The zip option creates an uncompressed zip archive.

Are you talking about zip or Archive? zip always compresses by default. That's the whole point of the app!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Create zip file without compression

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.