Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 381
  • Last Modified:

non-zero return status from tar

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
jmarkfoley
Asked:
jmarkfoley
1 Solution
 
joolsCommented:
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
 
jmarkfoleyAuthor Commented:
OK, I'll go with that.
0
 
mchkorgCommented:
too late, but maybe --ignore-fail-read would avoid your 2nd err msg (file changed while reading)
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now