MLUG: Re: [MLUG] tar no destruct?
Re: [MLUG] tar no destruct?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Hehe, I completely skipped that one, thinking it was for keeping tar 
from clobbering files when you extracted an archive, but I just tested 
it, and it keeps you from clobbering an archive when creating one that 
already exists, too.

The only problem is that it just immediately returns, with no messages 
or anything, so you may think you've backed something up, and it didn't 
happen because the archive already was there.

Jeremy Hinegardner wrote:
>>>>>>"Michael" == Michael  <EMAIL:PROTECTED> writes:
> 
> 
> Michael> Is there an option for using tar so you can't accidently
> Michael> overwrite an existing tar file when creating a new one? I just
> Michael> made that mistake and lost 600+MB of data I hadn't yet had the
> Michael> chance to sort through. I can't remember such a feature and
> Michael> don't see it in the manual but it seems an obvious feature I'd
> Michael> expect to exist.
> 
> This may only be an option on gnu tar, but that should suffice for Linux.
> 
>        -k, --keep-old-files
>               keep existing files; don't overwrite them from archive
> 
> enjoy,
> 
> -jeremy
> 
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members