× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




> That command just creates a zip file of everything within the stmimag
> directory.

No. It creates a zip file of everything that contains a dot in the stmimag directory. That's what *.* means... anything that contains a dot. Just as *a* means anything that contains an "a", and *b* means anything that contains a "b", *.* means anything that contains a "."

If he wanted everything, he needed to change the *.* to just *

jar cfM /stmimag/stmimages.zip -C stmimag/*

Also, I'm skeptical about the "cfM". Shouldn't the filename follow the "f"??? Isn't that the point of the "f" to denote that it's followed by the filename?

So it should be:

jar cMf /stmimag/stmimages.zip -C stmimag/*

The directory names are also a bit suspect. You don't want to zip all files in the same directory name that you're saving the ZIP file to, do you? You'd end up including the ZIP file in the files you're backing up... Of course, that would only be the case if the CWD was /, which it may not be, maybe he has two separate directories with the same name in different places. That would make sense, since a relative path is used in one place, and an absolute path in the other.

Too bad the original poster gave so little information about the situation. I could spend all afternoon in conjecture.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.