List Info

Thread: tar -u adds all files regardless of mod date




tar -u adds all files regardless of mod date
user name
2005-09-27 14:18:46
Hi Tim,

> 5-STABLE is sufficiently different that the patch
doesn't apply,
> unfortunately.  It will take me a few days to figure
out whether
> it's best to work up a different patch for 5-STABLE or
whether
> I should MFC a lot of work from 6-STABLE to 5-STABLE.

Unfortunately our server is also on the 5 stable branch.

> Please check that the following does work (without the
leading '/'):
>
>   tar -cf foo.tar usr/dir_a/dir_b
>   tar -uvf foo.tar usr/dir_a/dir_b

This works just fine. Thank you for response and suggested
workarounds.

Gareth Bailey
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
tar -u adds all files regardless of mod date
user name
2005-09-27 14:42:23
Just to add, I seem to be experiencing similar behaviour
using the -P option:

# tar -P -cvf archive.tar /usr/archive/Pimani/
.. files get added
# tar -P -uvf archive.tar /usr/archive/Pimani/
a /usr/archive/Pimani/Pimani Presentation/multimedia/August
2005/LM_001_PRINT_050119/Thumbs.db
a /usr/archive/Pimani/Pimani Presentation/multimedia/August
2005/26
August/t-shirtlogomany.gif

Result: Directory structure was static but two files were
added again.

The non-absolute path workaround worked fine:

# cd /
# tar -cvf archive.tar usr/archive/Pimani/
.. files added
# tar -uvf archive.tar usr/archive/Pimani/

Result: No files were added again (good).

Just to bring to your attention.

Gareth Bailey

On 9/27/05, Gareth Bailey <gjbaileygmail.com> wrote:
> Hi Tim,
>
> > 5-STABLE is sufficiently different that the patch
doesn't apply,
> > unfortunately.  It will take me a few days to
figure out whether
> > it's best to work up a different patch for
5-STABLE or whether
> > I should MFC a lot of work from 6-STABLE to
5-STABLE.
>
> Unfortunately our server is also on the 5 stable
branch.
>
> > Please check that the following does work (without
the leading '/'):
> >
> >   tar -cf foo.tar usr/dir_a/dir_b
> >   tar -uvf foo.tar usr/dir_a/dir_b
>
> This works just fine. Thank you for response and
suggested workarounds.
>
> Gareth Bailey
>
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
tar -u adds all files regardless of mod date
user name
2005-09-27 15:55:49
Thanks, Gareth.

I'm hoping to get some time this week to backport a lot of
changes from
bsdtar/libarchive in -CURRENT back to 5-STABLE.  I'll let
you know when
I get that done.

Tim

Gareth Bailey wrote:
> Just to add, I seem to be experiencing similar
behaviour using the -P option:
> 
> # tar -P -cvf archive.tar /usr/archive/Pimani/
> .. files get added
> # tar -P -uvf archive.tar /usr/archive/Pimani/
> a /usr/archive/Pimani/Pimani
Presentation/multimedia/August
> 2005/LM_001_PRINT_050119/Thumbs.db
> a /usr/archive/Pimani/Pimani
Presentation/multimedia/August 2005/26
> August/t-shirtlogomany.gif
> 
> Result: Directory structure was static but two files
were added again.
> 
> The non-absolute path workaround worked fine:
> 
> # cd /
> # tar -cvf archive.tar usr/archive/Pimani/
> .. files added
> # tar -uvf archive.tar usr/archive/Pimani/
> 
> Result: No files were added again (good).
> 
> Just to bring to your attention.
> 
> Gareth Bailey
> 
> On 9/27/05, Gareth Bailey <gjbaileygmail.com> wrote:
> 
>>Hi Tim,
>>
>>
>>>5-STABLE is sufficiently different that the
patch doesn't apply,
>>>unfortunately.  It will take me a few days to
figure out whether
>>>it's best to work up a different patch for
5-STABLE or whether
>>>I should MFC a lot of work from 6-STABLE to
5-STABLE.
>>
>>Unfortunately our server is also on the 5 stable
branch.
>>
>>
>>>Please check that the following does work
(without the leading '/'):
>>>
>>>  tar -cf foo.tar usr/dir_a/dir_b
>>>  tar -uvf foo.tar usr/dir_a/dir_b
>>
>>This works just fine. Thank you for response and
suggested workarounds.
>>
>>Gareth Bailey
>>
> 
> 
> 
> 


_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )