New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Apple Notebooks Apple's notebook computers including MacBook Pro, MacBook, MacBook Air, PowerBook, and iBook.

Macbook - archive


Post Reply New Thread Subscribe

 
Thread Tools
unplugged

 
Member Since: Jun 14, 2006
Posts: 140
unplugged will become famous soon enough

unplugged is offline
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/
QUOTE Thanks
cazabam

 
cazabam's Avatar
 
Member Since: Jun 06, 2006
Posts: 1,153
cazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of lightcazabam is a glorious beacon of light
Mac Specs: MacBook 2.0GHz White, 512MB RAM, 60GB HDD

cazabam is offline
What specific error do you get?
QUOTE Thanks
mac747

 
mac747's Avatar
 
Member Since: Sep 01, 2006
Location: Maryland
Posts: 385
mac747 will become famous soon enough
Mac Specs: 2.2GHZ Macbook Pro - 4GB RAM - 500GB HD

mac747 is offline
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
QUOTE Thanks
unplugged

 
Member Since: Jun 14, 2006
Posts: 140
unplugged will become famous soon enough

unplugged is offline
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/
QUOTE Thanks
mac747

 
mac747's Avatar
 
Member Since: Sep 01, 2006
Location: Maryland
Posts: 385
mac747 will become famous soon enough
Mac Specs: 2.2GHZ Macbook Pro - 4GB RAM - 500GB HD

mac747 is offline
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
QUOTE Thanks
unplugged

 
Member Since: Jun 14, 2006
Posts: 140
unplugged will become famous soon enough

unplugged is offline
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/
QUOTE Thanks
unplugged

 
Member Since: Jun 14, 2006
Posts: 140
unplugged will become famous soon enough

unplugged is offline
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/
QUOTE Thanks
unplugged

 
Member Since: Jun 14, 2006
Posts: 140
unplugged will become famous soon enough

unplugged is offline
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/
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« Microphone | Titanium Disassembly, Worth It? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
FAQ: Archive and Install MacAddikt OS X - Operating System 36 07-09-2009 09:24 AM
There any advantage with a format over Archive & Install? StealthMode OS X - Operating System 14 06-08-2009 07:34 PM
Mac OS X Archive Launched!!! Ghostshadow Web Design and Hosting 2 08-24-2006 01:26 AM
web archive request Patranous Schweb's Lounge 2 04-19-2006 02:51 AM
How To Archive Mac Mail? deezgames OS X - Apps and Games 3 10-23-2005 05:18 PM

All times are GMT -4. The time now is 03:41 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?