Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    1

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

    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??

  2. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

    Thanks!

Similar Threads & Tags
Similar threads

  1. Untar a file :@
    By slice16 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-11-2005, 02:33 PM
  2. tar and untar user account?
    By chadi in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-17-2005, 11:28 AM
  3. spamassassin options need a config file
    By hicom in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-07-2004, 11:38 PM
  4. Changing File permissions in File Manager
    By erobs in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 10-22-2003, 03:55 PM
  5. File Manager: File Type: fsav (linux) virus (24933-46)
    By hetzjagdaufzim in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-14-2002, 04:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube