I seem to be frequently encountering a situation when I compress files of a Drupal site as a tarball from a production server to the
public_html folder of my local machine.
The permissions seem to get messed up and I usually end up with a filesystem not readable error and deleting a few files in the
sites/default/files directory during the process of changing the permissions.
How can I preserve these permissions when the folder is compressed and copied to a new folder or is it an issue with the permissions of the destination folder?