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 ...
25th June 2009, 11:28 AM #1
- Rep Power
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:
Then I tried to just
mount -t afp afp://user:pass@remotemachine/share /remote
But that didn't seem to preserve the permissions as I had hoped, next tried:
cp -pRL /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.
ditto /users /remote
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?
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!
IDG Tech News
25th June 2009, 06:58 PM #2
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)
26th June 2009, 10:59 AM #3
- Rep Power
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!
26th June 2009, 11:04 AM #4
26th June 2009, 11:06 AM #5
This tutorial doesn't mention needing XCode installed to upgrade...
Bombich.com: Remote Backup of Mac OS X Using rsync
26th June 2009, 11:10 AM #6
I think it needs XCode for the compile and make commands though.
26th June 2009, 11:45 AM #7
- Rep Power
Yeah its the compiling rsync that I installed xcode for, were running Leopard here - 10.5.6 on most machines.
26th June 2009, 11:52 AM #8
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.
29th June 2009, 09:35 AM #9
- Rep Power
This is for network users, im not entirely certain how the permissions are applied (Toucan login scripts) but they seem to be unix permissions...
By LukeC in forum Windows
Last Post: 20th June 2009, 11:18 AM
Last Post: 19th September 2008, 11:27 AM
By SimpleSi in forum Windows
Last Post: 3rd March 2008, 02:29 PM
By acrobson in forum How do you do....it?
Last Post: 27th June 2007, 06:39 AM
By strawberry in forum Windows
Last Post: 5th June 2007, 11:23 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)