Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tar message

0 views
Skip to first unread message

Dennis Wicks

unread,
Mar 19, 2013, 6:50:02 PM3/19/13
to
What does it mean when tar displays message "file changed as
we read it"? Is anything wrong? BTW All instances involved
jpg files.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/5148E8B...@mgssub.com

Andreas Rönnquist

unread,
Mar 19, 2013, 7:20:02 PM3/19/13
to
On Tue, 19 Mar 2013 17:37:42 -0500,
Dennis Wicks<w...@mgssub.com> wrote:

>What does it mean when tar displays message "file changed as
>we read it"? Is anything wrong? BTW All instances involved
>jpg files.
>
>

Are you by any chance adding all files in a folder to a tarball
inside the same folder?

This will cause this message to be shown, since such a command will try
to add the created tarball to itself.

An example:

tar czvf mytar .

This will add all files in the folder to "mytar", but since mytar also
is created in the same folder, eventually it will come to that file,
and when does, it will try to be added to itself.

A solution is to work on the archive one folder up from the files you
want to tar:

tar czvf archive myfolder

or
tar cvzf ../archive .

-- Andreas Rönnquist
mailin...@gusnan.se
gus...@gusnan.se


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20130320001...@debian.lan

Dennis Wicks

unread,
Mar 19, 2013, 7:50:01 PM3/19/13
to
Andreas Rönnquist wrote the following on 03/19/2013 06:11 PM:
> On Tue, 19 Mar 2013 17:37:42 -0500,
> Dennis Wicks<w...@mgssub.com> wrote:
>
>> What does it mean when tar displays message "file changed as
>> we read it"? Is anything wrong? BTW All instances involved
>> jpg files.
>>
>>
>
> Are you by any chance adding all files in a folder to a tarball
> inside the same folder?
>
> This will cause this message to be shown, since such a command will try
> to add the created tarball to itself.
>
> An example:
>
> tar czvf mytar .
>
> This will add all files in the folder to "mytar", but since mytar also
> is created in the same folder, eventually it will come to that file,
> and when does, it will try to be added to itself.
>
> A solution is to work on the archive one folder up from the files you
> want to tar:
>
> tar czvf archive myfolder
>
> or
> tar cvzf ../archive .
>
> -- Andreas Rönnquist
> mailin...@gusnan.se
> gus...@gusnan.se
>
>

That is it! Thanks! Out-smarted myself!!




--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/5148F78...@mgssub.com
0 new messages