There are several ways to do this:
The easiest way is to use powershell command:
get-acl \SOURCE/FOLDER | set-acl \TARGETFOLDER
You can also use iCACLS to backup the permission to a file and restore it.
#backup icacls d:data /save ntfsperms.txt #restore icacls d: /restore ntfsperms.txt
Note: icacls doesn’t support restore drive root permission
very nice but how about recursive to all sub folder
Great article, I found a tool from 2 years can do this task easily via few clicks, I use it to copy the permissions from our site(windows server 2016) to windows server 2019