Copying a directory tree and its contents to another filesystem using tar will preserve ownership, permissions, and timestamps.
If you want recursively copy directory tree use next command:
tar cf - * | ( cd /target; tar xfp -)
The first part of the command before the pipe instruct tar to create an archive of everything in the current directory and write it to standard output (the – in place of a filename frequently indicates stdout). The commands within parentheses cause the shell to change directory to the target directory and untar data from standard input. Since the cd and tar commands are contained within parentheses, their actions are p...