Mac Thread, Need to copy user areas and preserve permissions in Technical; Ive got a window of 2 days after we break up to move everyones mac user areas from one server ...
11th December 2009, 11:11 AM #1
Need to copy user areas and preserve permissions
Ive got a window of 2 days after we break up to move everyones mac user areas from one server to another. Should be easy, but every time I have tried, permissions are not preserved (they are from AD, but both servers are bound to it)
Tried both the simple 'drag and drop' GUI way and also through terminal, but the result is the same. What do I need to do?
I suppose one way would be to enable SMB on both shares and copy using a Windows machine, but that doesnt really seem like an ideal method
IDG Tech News
11th December 2009, 01:20 PM #2
I assume using
doesn't give you what you need?
cp -R --preserve /source /destination
Last edited by pete; 11th December 2009 at 01:42 PM.
11th December 2009, 01:23 PM #3
if you use the windows machine i would use the command xcopy that copys permissions aswell..
11th December 2009, 03:29 PM #4
Ah, I didnt know about the 'preserve' bit no doubt that will work then
Originally Posted by pete
14th December 2009, 10:29 AM #5
Nope that doesnt work. Well, with -P it doesnt work anyway. --preserve isnt recognised at all
14th December 2009, 10:36 AM #6
-p it's lowercase. I hope it's not 10.4 or earlier because cp doesn't copy ACLs with those
14th December 2009, 10:44 AM #7
Ah, the option is present, just different flag under OS X (my example was for GNU cp). Use a lowercase "-p", see here: Mac OS X Manual Page For cp(1)
Originally Posted by sidewinder
Your example ("-P") tells it to ignore symbolic links, lower case ("-p") preserves attributes.
cp -R -p /source /destination
*nix - like a big friendly shire horse that'll happily trample over your feet if you tell it to.
edit: DMcCoy beat me to it
14th December 2009, 10:58 AM #8
Even with lowercase -p it still refuses to copy any permissions this is really odd
This is the exact command I used:
cp -R -p /volumes/homes/itteam/user /volumes/Data/homes/itteam
homes being the mounted share of the old server. Did this as root
Oh and its 10.5.8 I'm doing this on
14th December 2009, 11:16 AM #9
Are ACLs enabled on the destination volume? Both must also be connected to whatever the ACLs came from (OD/AD)
14th December 2009, 11:30 AM #10
Probably a stupid question but how do I check that? There are shares on this server using ACLs
Both are connected to AD, thats where all the permissions are from. One is an OD master, the other is a replica
14th December 2009, 01:05 PM #11
I had a similar issue and ended up using rsync which seemed todo the trick - if your going between machines you can 'pull' the files remotely via ssh.
14th December 2009, 02:04 PM #12
fsaclctl -p /Volumes/volumename
This will tell you if ACLs are enabled on the volume or not.
14th December 2009, 04:31 PM #13
On both servers, running that says ACL's are supported on both
14th December 2009, 04:44 PM #14
I don't know if it works over the network, at minimum make sure you are connected to the remote server with AFP.
Originally Posted by sidewinder
14th December 2009, 04:46 PM #15
I ran it on the local terminal on each server. Indeed running it on a remote volume brung up an error that support is unknown
By browolf in forum Group Project
Last Post: 3rd March 2011, 08:01 AM
By sidewinder in forum Mac
Last Post: 21st April 2008, 11:53 AM
By Dos_Box in forum School ICT Policies
Last Post: 5th December 2007, 12:54 PM
By Dos_Box in forum Windows
Last Post: 11th September 2007, 12:17 PM
By wesleyw in forum How do you do....it?
Last Post: 23rd August 2006, 02:07 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)