0

I have been using Windows 2008 in Parallels on my Mac Server to serve up files to my Windows clients on the network with a USB attached Drobo (NTFS). Now I want to move these files to my Mac Drobo (Mac OS Ext) and maintain as many file attributes as possible, such as date created and modified.

Recently I learned how to copy large amounts of data using rsync on my Mac. I assume permissions will not translate, but can I use the same command to copy the data from a NTFS formatted Drobo to the Mac OS Extended Drobo and maintain file attributes/metadata?

Here's the commend I used before:

sudo rsync -va --progress /Volumes/SourceName /Volumes/DestinationName

Thank you.

1 Answer 1

2

Check out the man page for rsync. In particular, the -a (archive) option you show will invoke the -rlptgoD options.

  • -r, --recursive (recurse into directories)
  • -l, --links (copy symlinks as symlinks)
  • -p, --perms (preserve permissions)
  • -t, --times (preserve times)
  • -g, --group (preserve group)
  • -o, --owner (preserve owner (super-user only))
  • -D (preserve device and special files)

Permissions can be preserved, but everything you copy will be owned by you unless you run under sudo so the -o option will take effect. Also note that without sudo, rsync gives you no special abilities to copy files that you do not have access to on the source drive.

You may also want to look at the -E option, but I don't know if it will work from an NTSF drive. Maybe it will preserve ACLs (if they exist on the source)?

3
  • Thank you. I guess my primary concern is that it copies all data (doesn't skip files that might be hidden, or Windows sys files) and preserves all attributes. So will my original command accomplish this? Jan 30, 2014 at 19:04
  • Yes, it should. rsync has many advanced filtering options, but in your usage above, it will "archive" everything in SourceName (assuming that is a directory) into a directory named /Volumes/DestinationName/SourceName. If you don't want the extra directory created, the first path should include a trailing slash: /Volumes/SourceName/.
    – ithos67
    Jan 31, 2014 at 1:10
  • One caveat I should mention: If you use sudo to preserve file ownership, the numeric ownership ID will be preserved. Your Mac and Parallels systems may have different ideas of which user a particular ID refers to, and the Mac side may ignore the ownership completely, in which case rsync can't do much about it.
    – ithos67
    Jan 31, 2014 at 1:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .