I have a folder on Unix (AIX) called: Peoplesoft. The owner of this folder is the user I login with: PSFT811. It has a ton of files and folder under it. I have been trying to run tar command to tar all files/folders under this directory and copy it over to another server. But I keep getting permission errors even though I"m the owner of the folder.
If found out that there are 3 folders under that "Peoplesoft" folder that has a different owner. I suspect this is why I get the permission errors when i try to copy.
I was told I could run the tar command and use a: "-X" parameter provide an "exclude list" and specify the folders I want to exclude from the tar copy.
But when I try to run the command I still get permission errors. I don't think I"m running it right. See attached. Please advise on the correct tar command to specify my exclude list.
So for example, under that "Peoplesoft" folder I have 3 folders called: export, import & PrintQueue. I want to exclude these folders from the tar command so that it will allow me to tar.