Monday, 14 August 2023

"tar: Exiting with failure status due to previous errors"


"tar: Exiting with failure status due to previous errors"

FIX : 

        1. Eliminate "-" from tar command

        Instead of tar -cvf use tar cvf  & add > /dev/null at the end so that it returns the exact error.

        Example :

tar cvf    backup.tar  backup  >  /dev/null

             Mostly tar fails if there are certain files on which the user has no permission.

            You might have few files of root ownership if you are taking backup of Oracle_Home binaries.

        




No comments:

Post a Comment