Generally speaking, if you want to move files from one unix/linux system to another unix/linux system, make
tar archives (aka a
tarball) it's the best way to
keep the rights, owners and groups.
Do not decompress on a FAT or FAT32 system. You lose rights and make new owner.
DOS/Windows file systems (i.e. FAT, FAT32 and in some case NTFS) do not use attributes 'executable' (i.e. +/-x) to define whether a program should be executable or not. (Not to be confused with execution rights)
Basic commands to know:
To
decompress a compressed tar (tgz or tar.gz)
$ tar
xvzf <archive>
To
compress a directory
$ tar
cvzf <archive> <directory or file(s)>
