Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2002
    Posts
    162

    backup a dir whith permissions and owner

    Hi

    How do I tar a map whit his premision and owner data to a dir.tar.gz ?

    and how untar that file again?

    I need to move a map from server1 to server 2 whith the same fileowner "username".

    So I dont want to chmod evry file again. Just tar and untar and then chown for the groupname.

    TNX.
    regards,
    Babak

  2. #2
    Tar: tar -cpvzf filename.tar.gz /dir
    Untar: tar -xpvzf filename.tar.gz
    AceWebHosting.Com
    Cheap Web Hosting - Multiple Domain Hosting - Reseller Hosting - Virtual Private Server

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •