Windows copy to another drive

Migrating a laptop to Omarchy #
As part of a step to migrate an older laptop from windows to Omarchy, I need to backup the entire drive in case there’s an issue. I decided to use windows tools with this and it took me a way to manage to do this in a reasonable manner.
For context, this was backing up a Users/ profile to a USB disk mounted as D:\
I fiddled around to try and not download cloud based resources and other things, my ultimate aim was to be able to be point it at the root directory and have it go to work, but in the end, I manually identified the folders to copy and did it in that way.
My copy code ended up looking like this (run through powershell):
| |
robocopy C:\Users\userA\Documents D:\razer\Users\userA\Documents /E /B /COPYALL /R:0 /W:0 /MT:8 /XF *.tmp /XJD /XA:SH /XD AppData /L
(The /L does a dry run and should be removed when it gets time to do the shift)