unable to copy folders with same permission

Solution 1:

Both articles are correct and does what you want.

I prefer using rsync -avh --progress <source>/ <destination> (in your case: rsync -avh --progress /var/lib/ /varlibnew) for the progress bar of the copying, you can also add -u if you want to update files in destination, if they are newer.

With rsync, mind that trailing / are of importance, if both source and destination have trailing /:s, then the destination goes one level deeper.