I hate the terminal. I know its the lifeblood to most mac/linux users, but I can't ever get it to work for me. I'm trying to do something so simple too.....
I have a server that died. Apple replaced it under warranty (I was most happy). I have my public folder and my users folder on my old server that I need to copy the files to my new server. I want to copy the public folder withOUT permissions and I will manually rebuild all ACLs (they got all fubared). I want to copy the users folder into the new macs' user folder and retain my acls.
I was told to do this with the terminal and CP. I was going to user Superduper and its nice 'preserve ACLs checkbox' but I'm not sure if it will work for me. Instead, I'm going to boot my new server into target disk mode (I've never done this - I assume is shows up under my mnt directory?) and connect it to the old server. I worked out 2 commands to run.
For copying public without ACLs:
cp -vR /oldserver/public /newserver/public
For copying users with ACLs:
cp -pvR /oldserver/users /newserver/users
(I realize I don't need the -v but its nice to see it working)
Right? Thing is, it copys the files in their containing folder into the new folder. So - I would end up with /newserver/public/public/.......
How do I tell it to copy my files into the directory and not into a directory in that directory?
On top of that, is there an easier way to do this? I looked at Rsync, but I woudl end up with 1000 switches, and I don't have files to merge - my destination is empty.
Thanks in advance!
I have a server that died. Apple replaced it under warranty (I was most happy). I have my public folder and my users folder on my old server that I need to copy the files to my new server. I want to copy the public folder withOUT permissions and I will manually rebuild all ACLs (they got all fubared). I want to copy the users folder into the new macs' user folder and retain my acls.
I was told to do this with the terminal and CP. I was going to user Superduper and its nice 'preserve ACLs checkbox' but I'm not sure if it will work for me. Instead, I'm going to boot my new server into target disk mode (I've never done this - I assume is shows up under my mnt directory?) and connect it to the old server. I worked out 2 commands to run.
For copying public without ACLs:
cp -vR /oldserver/public /newserver/public
For copying users with ACLs:
cp -pvR /oldserver/users /newserver/users
(I realize I don't need the -v but its nice to see it working)
Right? Thing is, it copys the files in their containing folder into the new folder. So - I would end up with /newserver/public/public/.......
How do I tell it to copy my files into the directory and not into a directory in that directory?
On top of that, is there an easier way to do this? I looked at Rsync, but I woudl end up with 1000 switches, and I don't have files to merge - my destination is empty.
Thanks in advance!