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
- 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!
-
-
IDG Tech News
-
25th June 2009, 06:58 PM #2 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)
-
-
26th June 2009, 10:59 AM #3
- 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!
-
-
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
- 11
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
- 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: 
Similar Threads
-
By LukeC in forum Windows
Replies: 2
Last Post: 20th June 2009, 11:18 AM
-
Replies: 3
Last Post: 19th September 2008, 11:27 AM
-
By SimpleSi in forum Windows
Replies: 1
Last Post: 3rd March 2008, 02:29 PM
-
By acrobson in forum How do you do....it?
Replies: 1
Last Post: 27th June 2007, 06:39 AM
-
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
-
Forum Rules