+ Post New Thread
Results 1 to 9 of 9
Mac Thread, Preseving permissions whilst copying (remote destination) in Technical; Hello all, I hope this isn't too similar to http://www.edugeek.net/forums/mac/18...rmissions.html - I didn't want to bump that thread as it ...
  1. #1

    Join Date
    May 2008
    Posts
    204
    Thank Post
    2
    Thanked 26 Times in 26 Posts
    Rep Power
    11

    Preseving permissions whilst copying (remote destination)

    Hello all, I hope this isn't too similar to How do you copy a folder and preserve ownership/permissions? - I didn't want to bump that thread as it discusses 'local' copying which works fine.

    We have an iMac that is playing up and not using remote home directories properly and instead the users directories are store on the machine itself - I wanted to grab all the work off this machine and simply re-image it.

    I didn't get the the re-image part yet since I have not been able to get the /users folder off the machine with the permissions etc preserved.

    I think I know what the problem is, but im not sure how to solve it or a method that doesn't 'cause' the same result. My method is the ssh to the machine in question then:

    Code:
    mkdir /remote
    mount -t afp afp://user:pass@remotemachine/share /remote
    Then I tried to just

    Code:
    cp -pRL /users /remote
    But that didn't seem to preserve the permissions as I had hoped, next tried:

    Code:
    ditto /users /remote
    Apart from now having hundreds of folders on my share instead of a users/lots of folders (it seems ditto is quirky!) I still didn't have the files with their permissions.

    At this point I noticed that it seems to be just giving ownership to the user I mounted the share with! What am I doing wrong?

    Cheers,

    Nick

    PS - We probably don't need *every* single file/folder, but its a pain to get feedback on what needs to be kept and chown it all manually once restored - besides I wouldn't mind knowing how to get this process done alot faster in the future!

  2. IDG Tech News
  3. #2
    AntonioRocco's Avatar
    Join Date
    Oct 2008
    Location
    Nottingham
    Posts
    227
    Thank Post
    9
    Thanked 87 Times in 74 Posts
    Rep Power
    33
    Hi Nick

    Use rsync - man rysnc (from the command line). Its what it was designed for.

    There's already a thread posted my HodgeHi that mentions its use I think?

    Antonio Rocco (ACSA)

  4. #3

    Join Date
    May 2008
    Posts
    204
    Thank Post
    2
    Thanked 26 Times in 26 Posts
    Rep Power
    11
    Forgot about rsync!

    I've updated the two machines in question to rsync 3.0.6, which means installing xcode etc to compile, is the 'default' rsync that bad? (For future 'rescue' missions) I'd rather not add 2gb to our install images 'unecessarily' unless anyone can point me to a guide to installing 'enough' to compile things?

    Don't suppose it really matters in the long run, will keep trying!

  5. #4
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,230
    Thank Post
    10
    Thanked 443 Times in 387 Posts
    Rep Power
    101
    What version of OS X?

  6. #5

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,182
    Thank Post
    299
    Thanked 211 Times in 181 Posts
    Rep Power
    53
    This tutorial doesn't mention needing XCode installed to upgrade...

    Bombich.com: Remote Backup of Mac OS X Using rsync

  7. #6

    Join Date
    May 2006
    Location
    West Bromwich
    Posts
    2,182
    Thank Post
    299
    Thanked 211 Times in 181 Posts
    Rep Power
    53
    I think it needs XCode for the compile and make commands though.

  8. #7

    Join Date
    May 2008
    Posts
    204
    Thank Post
    2
    Thanked 26 Times in 26 Posts
    Rep Power
    11
    Yeah its the compiling rsync that I installed xcode for, were running Leopard here - 10.5.6 on most machines.

  9. #8
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,230
    Thank Post
    10
    Thanked 443 Times in 387 Posts
    Rep Power
    101
    Are they local users or network users? ACLs or unix permissions? You can create a dmg from the folder with disk utility and see if that preserves what you want, although it depends if the user has the same UID on both locations.

  10. #9

    Join Date
    May 2008
    Posts
    204
    Thank Post
    2
    Thanked 26 Times in 26 Posts
    Rep Power
    11
    This is for network users, im not entirely certain how the permissions are applied (Toucan login scripts) but they seem to be unix permissions...

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 20th June 2009, 11:18 AM
  2. Destination NAT
    By Jackd in forum *nix
    Replies: 3
    Last Post: 19th September 2008, 11:27 AM
  3. Pulling copying fails - push copying works
    By SimpleSi in forum Windows
    Replies: 1
    Last Post: 3rd March 2008, 02:29 PM
  4. Re-Directing ISA destination sets
    By acrobson in forum How do you do....it?
    Replies: 1
    Last Post: 27th June 2007, 06:39 AM
  5. remote access/permissions/webmail.
    By strawberry in forum Windows
    Replies: 0
    Last Post: 5th June 2007, 11:23 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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