bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Problem: file changed as we read it --> premature script s


From: Torino Stampanti
Subject: Re: [Bug-tar] Problem: file changed as we read it --> premature script stop.
Date: Wed, 21 Jul 2010 18:33:51 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6

Il 20/07/2010 16:24, Torino Stampanti ha scritto:
Il 20/07/2010 14:39, Sergey Poznyakoff ha scritto:
Torino Stampanti<address@hidden>  ha escrit:

Tar version: 1.2
Are you really sure? The latest version of GNU tar is 1.23. I have no
records about v. 1.2, but the version 1.10 was released in July, 1991.

I have a script with tar.
The script execute tar command in samba share monted in /mnt
Sometime the script has stopping premature.

the errors are:

tar: /mnt/Backup Set 2010-07-12 144658/Backup Files 2010-07-12 144658:
file changed as we read it
This error means that the said file underwent some modification
during archiving. It does not cause archivation to stop.

- Is there a tar option/metod to force the continous "tar" process?
There's no need for such an option, because this is a non-fatal error
and tar would always continue archiving after encountering it.

- what can I do to resolve this problem end go to finish my script?
Ensure that the file is not modified during the backup.

Regards,
Sergey

Thanks for your answer,

I am really sure that the default version of Debian 5 - stable is:

tar --version

tar (GNU tar) 1.20

Copyright (C) 2008 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

I am also sure that the file doesn't change.
In the log file, I found only the message: "file changed as we read it"
What can I do to search the error cause?

Thanks
Alessandro






I'm sorry!
I did a mistake!
The "tar" process didn't stop for "file changed as we read it " error.
But I am sure that the file doesn't change during 'tar' process.
The 'tar' process finished but the error caused an exit status error (in particular =1).
This situation, in my script, cause a script termination.
Now, I should manage this situation.

Thanks at all




reply via email to

[Prev in Thread] Current Thread [Next in Thread]