Solved

non-zero return status from tar

Posted on 2008-09-30
3
356 Views
Last Modified: 2013-12-16
I get a return status of '1' after an apparently successful tar. Does anyone have any idea why? An errno of 1 is 'operation not permitted'. Here are the messages I get when running tar. None appear to imply "operation not permitted":

tar: Removing leading `/' from member names
tar: /var/log/backup/backup.080929: file changed as we read it
tar: /var/run/dbus/system_bus_socket: socket ignored
tar: /var/run/proftpd/proftpd.sock: socket ignored
tar: /var/run/acpid.socket: socket ignored
tar: /dev/gpmctl: socket ignored
tar: /dev/log: socket ignored
tar: Removing leading `/' from hard link targets
0
Comment
Question by:jmarkfoley
3 Comments
 
LVL 19

Accepted Solution

by:
jools earned 500 total points
ID: 22604184
The error is not zero because of the messages, they look like they are just warnings and can be ignored.

I guess the backup.080920 is your backup log file which is being updated as the backup is progressing.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 22612532
OK, I'll go with that.
0
 
LVL 7

Expert Comment

by:mchkorg
ID: 22612623
too late, but maybe --ignore-fail-read would avoid your 2nd err msg (file changed while reading)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is an update and follow-up of my previous article:   Storage 101: common concepts in the IT enterprise storage This time, I expand on more frequently used storage concepts.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question