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 .
>