Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2013

    tar: file changed as we read it

    Hi there,

    I got the "tar: file changed as we read it" message.

    I fixed it using --ignore-failed-read in the command line.

    If it is being ignored, will the file still tar?

    Does it mean it will not be the most recent version i.e. not the version after it read it?


  2. #2
    Join Date
    Oct 2013
    It means that while the file was being streamed to the tar archive, the contents changed. Doing a tar isn't atomic, the bytes stream and something could be added to the file while that happens.

    If it's a file that just gets added on to the end like a log file you will be fine. If it's a file whose contents changes dramatically, you could have been halfway through the file backup when stuff at the start and end gets updated. If so, you get the changes at the end but not the start.

    Some systems such as a database which does binary logs will still cope with this, some may end with a corrupted file. It might be a good idea to take a look at which file it is and decide if you need to stop a service before the backup to avoid corruption.

Similar Threads

  1. Shared Host and a Huge TAR File ... Please Read In
    By chillax in forum Web Hosting
    Replies: 1
    Last Post: 03-24-2007, 10:57 AM
  2. help with tar file
    By jcrespi in forum Programming Discussion
    Replies: 2
    Last Post: 06-26-2004, 03:39 AM
  3. I have the tar file, now what?
    By zmontano69 in forum Hosting Security and Technology
    Replies: 8
    Last Post: 11-28-2003, 05:13 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts