Muralidharan M Consultant with over 4+ years of professional experience in the software industry, Skillful in Setup, Implementation and Configuration of Oracle EBS R12, Webcenter, GRC suite, Endeca and OBIA.
I have got composed a little script that tars and compresses a listing of directories + documents.
The screenplay shows up to operate succesfully, in that a useable.tar.gz file is made after the script operates.
Nevertheless, I get this frustrating information after the software finishes:
tar: Getting out of with failure status credited to prior mistakes
I do not find any mistake text messages whilst the script is working, and like I said, the created file can be uncompressed with no warnings/errors. Since I have always been using this as component of my backup, I would like to create certain that I feel not overlooking something critical.
What are usually the possible reasons that this mistake/warning information is being produced - and can I properly ignore it?. If I cant disregard it, what are the measures to detect and solve the mistake?
I am running on Ubuntu 10.0.4
morpheousmorpheous1,70399 magic badges2626 silver precious metal badges2828 bronze badges
8 Answers
You will get that message if, for any reason, tar can'capital t include all of the specified files to the tar. One if the nearly all common is not getting read authorization on one of the documents. This could become a big problem since you are making use of this for back-up. If you are usually making use of the
KeithBKeithB-v
flag, try making it off. This should decrease the output and allow you see what is going on.8,03611 gold logo1818 metallic badges1313 bronze badges
the issue is usually the discussion,
f
debate get the following as the filename, so it must become the last of disagreementor
is certainly the same and no take mistake.
Andrea MonniAndrea Monni
Sometimes backing up documents that might modify during the back-up like logfiles, you might discover helpful the tar option '-ignore-failed-read' (I'michael on Debian Linux, not really certain for non gnu tar).
Regular output and error can become sent straight in 2 different files with something like:
I discover this to end up being generally safe, but make sure you be cautious though as tar won't halt.
Fabio PedrazzoliFabio Pedrazzoli
I was having the exact same problem and none of the above answers worked for me. However, I found that working the following command worked:
tar -cpzf /backups/fullbackup.tar.gz -leave out=backups -leave out=proc -leave out=tmp -exclude=mnt -exclude=sys -leave out=dev -leave out=run /
The mistakes that had been being known to in
tar: Exiting with failure status credited to prior errors
can end up being discovered by turning off the -v option. Upon evaluation, the errors arrived from web directories like/operate
and/sys
.By eliminating these directories, it works just good. Hope this helps anyone with a related issue.
DomainsFeaturedDomainsFeatured
I had the same issue. All i did has been to get rid of the splash ('-') from the order.
Instead of typing it as
tar -cvfz result.tar.gz folder/
try keying it as
tar cvfz result.tar.gz folder/
I have always been unaware of why the splash was leading to troubles in my situation but at minimum it worked.
jackjack
You have misinterpreted an previous answer. The problem is not the
-
, it is where thef
is usually in your argument listing.Will attempt to develop an store called 'z', as that is the text after
f
. The error message can be because tar can't find 'target.gz' to add to archive 'z'.Will correctly create target.tgz and add data files to it. This is because target.tgz can be the very first text message after the
Jamie Taylorn
point.51633 yellow metal badges1111 silver badges2727 bronze badges
ThornburyThornbury
Usually you can ignore that message. If there are any changes (like as file deletions/masterpieces/modifications) to underlying directory sapling during tar development, it will toss that information. Also if there specific documents like gadget nodes, fifos and so on, they will result in that warning.
Are you sure you can't discover any culprit files? Attempt with
Janne PikkarainenJanne Pikkarainentar cvfz yourtarball.tgz /your/route
6,40911 platinum logo2323 silver precious metal badges2929 bronze badges
I acquired a identical concern untarring a document I got received. Transforms out I didn't have authorization to write the data files in the save possessed by basic. Making use of sudo set it.
ttwalkerttttwalkertt