untar a file using linux options like -p to preserve permissions

mirror51

Registered
Jul 19, 2009
1
0
51
In lnux i am using

tar -xpf backup.tar
to preserve the files and directory permissions.
Is there any to do this in cpanel.

If i extract in cpanel my permissiosn are not restored
i have to manually process 100 files again.


Any help??
 

Eric

Well-Known Member
Nov 25, 2007
754
14
143
Texas
cPanel Access Level
Root Administrator
Twitter
Howdy,

I'm pretty sure the -p switch preserves the UID/GID of the file permissions. If you restore things on a different server where you have the same username, but that user has a different UID/GID it could have issues.

If you'd care to elaborate on your situation, perhaps we can help you find a way to make it work. :D

Thanks!