Solved

non-zero return status from tar

Posted on 2008-09-30
3
335 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
Comment Utility
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
Comment Utility
OK, I'll go with that.
0
 
LVL 7

Expert Comment

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now