- The Finder will probably trash the security when copying files.
- Some files are open for writing by applications and services.
- Do not copy system files using drag&drop.
- Some applications may not work with symlinks.
So, FreakinEurekan is right: It's less risky to only simlink some "choosen" folders, because most folders in your profile are small enough to not bother moving them and lose performances.
Before anything, here's an easy way to check the size of the folders (from the terminal):
The "-d 2" part is the "depth" of the analyse. 2 should be enough to have a general idea.
IMPORTANT: Some older version of "ditto" are not going to work without explicit options on the command line (This post is for Mavericks only).
Whatever, a way to copy something from your home fodler is:
- Create a new admin account and do everything from this account. That'll avoid problems with open files.
- From the terminal, use "sudo ditto" to copy the files/folders.
- Do not delete something before testing: rename it.
- Symlink.
- Check the result (See below the "LS" command).
- Relog with your original account and re-check that everything is working.
An example (Copying the "Public" folder to a "Work" dedicated drive):
Log-in from another admin account and launch the terminal (It's not necessary for the "Public" folder but it'll be for "Library")
- Copy the files/folders from you original account:
Code:
sudo ditto /Users/your_original_name/Public /Volumes/Work/Public
- Check the security with this command:
Code:
ls -lave /Users/your_original_name
ls -lave /Volumes/Work
Both should give you the same result for the copied files (Public). All line are important (The second line is the ACLs, they are part of the file system security!).
Code:
drwxr-xr-x+ 6 your_original_name staff 204 Dec 31 15:34 Public
[B]0: group:everyone deny delete[/B]
In doubt, try to copy your Public folder somewhere using the Finder and
... The ACL's are probably gone (Public is an example, but a lot of other folders are going to have ACLs)