Results 1 to 5 of 5

Thread: Tar Behaviour - Exiting with failure status due to previous errors

  1. #1
    Join Date
    Jun 2006
    Location
    London, England
    Beans
    85
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Tar Behaviour - Exiting with failure status due to previous errors

    I just wanted to check when tar prints the following line
    Exiting with failure status due to previous errors
    Does that mean the created archive is broken, or, just that some individual files failed.

    I am trying to tar up my home directory as a form of crude backup, but when the computer is running, files obviously change. Tar, run from CRON, always reports the following:

    tar: Removing leading `/' from member names
    tar: Exiting with failure status due to previous errors
    I wonder if the resulting file will be good (barring those few failed files - which I don't need), or if tar dies and leaves an unfinished file?

    Any heads up would be great,
    Thanks,
    George Smart, M1GEO

    PhD Research Student, Electronic & Electrical Engineering, University College London
    Dell Precision 1600, 8GB RAM, Intel Xeon E31225 3.10GHz CPU, 5TB HDD, nVidia Quadro 600.

  2. #2
    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Beans
    654
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Tar Behaviour - Exiting with failure status due to previous errors

    This error, I believe always appears at the end of the backup. Your back up file should still be good. To test it, right click the file and select "extract here." The resulting file should be identical the whatever you are backing up.

  3. #3
    Join Date
    Jun 2006
    Location
    London, England
    Beans
    85
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Tar Behaviour - Exiting with failure status due to previous errors

    Great. Thanks for the reply. I shall check that out. I mean I'm talking a good Terrabyte or so, so its going to take a while. The actual script creates incremental backups, but the error remains the same. I shall restore a few and see how I get on.

    Thanks.
    George Smart, M1GEO

    PhD Research Student, Electronic & Electrical Engineering, University College London
    Dell Precision 1600, 8GB RAM, Intel Xeon E31225 3.10GHz CPU, 5TB HDD, nVidia Quadro 600.

  4. #4
    Join Date
    Jun 2006
    Location
    London, England
    Beans
    85
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Tar Behaviour - Exiting with failure status due to previous errors

    Duplicate post. Sorry.
    Last edited by Compu-king; June 16th, 2010 at 05:00 AM. Reason: repost
    George Smart, M1GEO

    PhD Research Student, Electronic & Electrical Engineering, University College London
    Dell Precision 1600, 8GB RAM, Intel Xeon E31225 3.10GHz CPU, 5TB HDD, nVidia Quadro 600.

  5. #5
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: Tar Behaviour - Exiting with failure status due to previous errors

    I like a good 0 return code from tar. Typically, files you do not own or some mounted filesystems cause problems with tar. Some examples include excluding the .gvfs virtual filesystem and make sure you own .ICEAuthority.

Tags for this Thread

Bookmarks

Posting Permissions

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