1833785 Members
4014 Online
110063 Solutions
New Discussion

Error in TAR backup

 
SOLVED
Go to solution
Karl_
Frequent Advisor

Error in TAR backup

Hi,

I get a message "tar: couldn't get gname for gid 105" when I run the TAR backup. After I get this message, TAR backups another file system which is not included in my tar command. What do you think is the matter?

Thank you very much

Karl
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: Error in TAR backup

The two are most likely completely unrelated.

The "tar: couldn't get gname for gid 105" just means that there was a file that had its group set for group 105, which does not exist in /etc/group. That is just an informational message.

If you post your tar command, and tell us what you did and did not want to back up, we can probably tell you where the problem is.
Simon Hargrave
Honored Contributor

Re: Error in TAR backup

Is GID 105 in your /etc/group file? I suspect not.

tar will cross filesystem boundaries, ie if you have a /opt and a /opt/something, a tar of /opt will include /opt/something unless you explicity specify otherwise.
Karl_
Frequent Advisor

Re: Error in TAR backup

After scrutinizing the tar command, I'v found a directory that should not belong there.

Anyway, let me go back to the "gid 150" message. Does this mean that the files that have 105 were not included in the backup?
Simon Hargrave
Honored Contributor

Re: Error in TAR backup

The file will still be in the tar, it's just a warning message.

You can verify this logic with: -

touch afile
chgrp 678 afile
tar cvf arch.tar afile
tar tvf arch.tar

the output is: -

rw-r----- 335/678 0 Aug 13 15:46 2004 afile

which confirms the file has been backed up.
Patrick Wallek
Honored Contributor

Re: Error in TAR backup

No, the files will still be in the backup. If you go and do an 'll' on that file, you will see that the group will be 105 instead of a meaningful name.

Apparently at some point a group with a GID of 105 existed, but it does not anymore.
Karl_
Frequent Advisor

Re: Error in TAR backup

Thank you very much for your inputs guys.

Best regards,

Karl