I want to copy /var/lib
with same permissions of all files and folders.
some articles says cp -rp /var/lib/ /var/libnew/
and some says use rsync -aX /var/lib /var/libnew/
explain please which one is better as most important thing in which All permissions should be same 100 percent.