Results 1 to 9 of 9

Thread: archive

  1. #1


    Member Since
    Jun 14, 2006
    Posts
    140
    archive
    is there any archiving software to make directories or files in tar (archives)?

    I used Terminal, with the command.. tar -cfpv filename.tar foldername

    and it gives me an error. If I removed the -p then it will work fine, but I want to keep the file permissions. Any idea why i'm getting an error?

    I don't really want to spend 50 bucks on the Stuffit software to just do that. If anyone can tell me if i'm doing something wrong or if there is some freeware out there, please let me know
    MacBook Pro - 2.33Ghz, 2GB, SuperDrive, OS X 10.4.10
    http://web.mac.com/mhadjar/

  2. #2

    cazabam's Avatar
    Member Since
    Jun 06, 2006
    Posts
    1,153
    Specs:
    MacBook 2.0GHz White, 512MB RAM, 60GB HDD
    What specific error do you get?

  3. #3

    mac747's Avatar
    Member Since
    Sep 01, 2006
    Location
    Maryland
    Posts
    385
    Specs:
    2.2GHZ Macbook Pro - 4GB RAM - 500GB HD
    I'm a Solaris engineer and if you do the tar -cvf in Solaris, it will keep your permissions....

    You could always try it and then do an xvf in another dir and see if it kept perms....

    Tim

  4. #4


    Member Since
    Jun 14, 2006
    Posts
    140
    Quote Originally Posted by mac747
    I'm a Solaris engineer and if you do the tar -cvf in Solaris, it will keep your permissions....

    You could always try it and then do an xvf in another dir and see if it kept perms....

    Tim

    if i could get that far...lol


    It doesn't give me an error.. just pauses and brings me back to the prompt. No file is created.
    MacBook Pro - 2.33Ghz, 2GB, SuperDrive, OS X 10.4.10
    http://web.mac.com/mhadjar/

  5. #5

    mac747's Avatar
    Member Since
    Sep 01, 2006
    Location
    Maryland
    Posts
    385
    Specs:
    2.2GHZ Macbook Pro - 4GB RAM - 500GB HD
    Quote Originally Posted by unplugged
    if i could get that far...lol


    It doesn't give me an error.. just pauses and brings me back to the prompt. No file is created.
    Oh, you said if you remove the -p it works fine. So it really doesn't?

    What dir are you trying to tar? I can try it here and see if I have the same issue. I would think if it was a problem with perms, it would give you an error....

    Oh and now that I read my first reply, I wasn't trying to brag or something about being a Solaris Engineer lol, I was just letting you know I do this at least once a week and know how it works in Solaris...

    Tim

  6. #6


    Member Since
    Jun 14, 2006
    Posts
    140
    Quote Originally Posted by mac747
    Oh, you said if you remove the -p it works fine. So it really doesn't?

    What dir are you trying to tar? I can try it here and see if I have the same issue. I would think if it was a problem with perms, it would give you an error....

    Oh and now that I read my first reply, I wasn't trying to brag or something about being a Solaris Engineer lol, I was just letting you know I do this at least once a week and know how it works in Solaris...

    Tim
    If i remove the -p, it will tar it fine. If I add the -p, it won't do anything. It doesn't matter which directory.
    MacBook Pro - 2.33Ghz, 2GB, SuperDrive, OS X 10.4.10
    http://web.mac.com/mhadjar/

  7. #7


    Member Since
    Jun 14, 2006
    Posts
    140
    if i remove the -v and do -cfp, then i get an error

    cannot stat: no such file or directory

    if i do -cvf it works fine.. i don't get why the -p gives me problems
    MacBook Pro - 2.33Ghz, 2GB, SuperDrive, OS X 10.4.10
    http://web.mac.com/mhadjar/

  8. #8


    Member Since
    Jun 14, 2006
    Posts
    140
    figured it out.. but this is really, really weird..

    on my linux machine, i have to use tar -cvpf and on the mac tar -cpfv

    it seems the way you arrange the letters can make it work or not work which I find odd. But at least now I know what to do
    MacBook Pro - 2.33Ghz, 2GB, SuperDrive, OS X 10.4.10
    http://web.mac.com/mhadjar/

  9. #9

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    The f has to be in the last position, it is the only option looking for an argument (directory path).
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Self extracting archive
    By BobaFett2040 in forum OS X - Apps and Games
    Replies: 10
    Last Post: 12-22-2010, 02:46 PM
  2. Archive and Install
    By Jean McBook in forum OS X - Operating System
    Replies: 6
    Last Post: 06-19-2010, 06:32 PM
  3. Archive Email
    By markw21 in forum OS X - Apps and Games
    Replies: 1
    Last Post: 03-30-2010, 07:57 AM
  4. archive and install
    By knic1590 in forum OS X - Operating System
    Replies: 1
    Last Post: 02-05-2009, 04:31 PM
  5. archive
    By core20 in forum OS X - Operating System
    Replies: 5
    Last Post: 05-15-2007, 07:04 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
  •