Recently I had to copy a directory structure including a mysql database. The problem I ran into was permissions were not preserved (despite using the -a option). I then came across an option to sudo which preserved the permissions.