Results 1 to 11 of 11

Thread: zip problem

  1. #1
    zip problem

    Member Since
    Jun 20, 2011
    Posts
    56
    Question zip problem
    I'm new to Apple (converted in June, from decades of PC).
    I want to archive my MS Office backup files.
    I had no trouble doing it on my PC, but I'm having trouble converting the command to run on my Mac.
    I have it running (made it executable), but it's not finding my files.

    When I run:
    Code:
    #!/bin/bash
    zip -m -r -o -9 -dc -dd  /Volumes/Backup2048/Word /Volumes/*.wbk "/Volumes/Backup of*.docx"
    I get these messages:
    zip warning: name not matched: /Volumes/*.wbk
    zip warning: name not matched: /Volumes/Backup of*.docx

    btw - Backup2048 is my USB backup drive and HDD2048 is my internal drive.

    HELP!
    -John

    27" iMac w 4x3.4 GHz, iPhone 5 wannabe, 64GB iPod Touch & MobileMe

  2. #2
    zip problem
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Ok, first.. what's the expected output? Are you trying to create a single zip of the contents of all .wbk files in

    Volumes/Backup2048/Word\ /Volumes/

    Or are you trying to zip each wbk file?
    mike
    This machine kills fascists
    Got # ? phear the command line!

  3. #3
    zip problem

    Member Since
    Jun 20, 2011
    Posts
    56
    Question
    I'm trying to create a single Zip file called WORD in the /Volumes/Backup2048/ folder. This zip file will contain all the *.wbk and Backup*.docx files on any drive on my iMac.

    I think my problem is more fundamental.



    If I say
    ls -G -h -k -R /Volume/*.wbk
    it returns
    ls: /Volume/*.wbk: No such file or directory
    yet if I drill down to the directory that contains the files, the LS command works. It's almost as if the -R switch is not working for this command. -R works for other files. Strange...
    -John

    27" iMac w 4x3.4 GHz, iPhone 5 wannabe, 64GB iPod Touch & MobileMe

  4. #4
    zip problem
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Oh! Try this

    find / -name *.wbk

    That should show every file on your system (from the root dir / down). I really prefer find to ls for this type of work in general
    mike
    This machine kills fascists
    Got # ? phear the command line!

  5. #5
    zip problem
    chas_m's Avatar
    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    18,970
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Wouldn't making a smart folder of all *.wbk files and then archiving them (right click) be both faster and more elegant? Or did I miss something?

  6. #6
    zip problem
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Possibly. It depends on what your definition of 'more elegant' is I suppose. Personally I'd have done something like...

    find / -name *.wbk -exec zip -g /path/to/whatever.zip {} ';'

    Since I'm RARELY in Finder, but ALWAYS have a terminal window open, for me.. this IS more elegant. Especially if you cron it
    mike
    This machine kills fascists
    Got # ? phear the command line!

  7. #7
    zip problem
    chas_m's Avatar
    Member Since
    Jan 22, 2010
    Location
    Victoria, BC
    Posts
    18,970
    Specs:
    Mid-2012 MBP (16GB, 1TB HD), Monoprice 24-inch second monitor, iPhone 5s 32GB, iPad Air 2 64GB
    Oh you UNIX/CLI geeks!

  8. #8
    zip problem
    dtravis7's Avatar
    Member Since
    Jan 04, 2005
    Location
    Modesto, Ca.
    Posts
    28,481
    Specs:
    iMac late 2007 10.11.b4, iMac 2008 10.10.5, Macbook2007 10.7.5, Mac Mini 10.7.5, iPhone 3GS Note 8!!
    Quote Originally Posted by chas_m View Post
    Oh you UNIX/CLI geeks!
    I was like that except a DOS command line freak! Loved even in Windows to use the DOS command prompt. I know a little Unix and terminal, but for what the OP is doing, I probably would just get the files together and right click!

  9. #9
    zip problem
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    Quote Originally Posted by chas_m View Post
    Oh you UNIX/CLI geeks!
    So, how exactly does one with a fine arts education get into development? I have nooooo idea.
    mike
    This machine kills fascists
    Got # ? phear the command line!

  10. #10
    zip problem

    Member Since
    Jun 20, 2011
    Posts
    56
    Quote Originally Posted by Dysfunction View Post
    Oh! Try this

    find / -name *.wbk

    That should show every file on your system (from the root dir / down). I really prefer find to ls for this type of work in general
    That command found the files!
    That's the good news.
    Now if I could only figure out why zip is not working...
    -John

    27" iMac w 4x3.4 GHz, iPhone 5 wannabe, 64GB iPod Touch & MobileMe

  11. #11
    zip problem

    Member Since
    Jun 20, 2011
    Posts
    56
    Quote Originally Posted by chas_m View Post
    Wouldn't making a smart folder of all *.wbk files and then archiving them (right click) be both faster and more elegant? Or did I miss something?
    Being new to Mac, the obvious question is, "What's a Smart Folder?"

    Time for me to read some...

    [edit]
    Thanks for the pointer to Smart Folders. This looks like a good way to repeatedly find stuff, but I'd still like zip to be able to find and remove certain files for me.
    [/edit]
    -John

    27" iMac w 4x3.4 GHz, iPhone 5 wannabe, 64GB iPod Touch & MobileMe

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem opening Zip
    By glennpompier in forum OS X - Operating System
    Replies: 10
    Last Post: 10-06-2013, 07:38 AM
  2. Zip Files
    By britclin in forum Switcher Hangout
    Replies: 3
    Last Post: 03-30-2012, 12:14 PM
  3. Zip Compression Problem when Opening in Windows
    By sonaro in forum OS X - Operating System
    Replies: 2
    Last Post: 12-26-2009, 07:12 PM
  4. Memorex zip drive problem
    By OK Computer in forum Other Hardware and Peripherals
    Replies: 0
    Last Post: 07-01-2008, 10:18 PM
  5. Zip not compressing at all...how do I .zip a folder?
    By lewistyler in forum Switcher Hangout
    Replies: 1
    Last Post: 09-05-2006, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •