Some helpful commands:
on the old machine clean out caches and stuff
find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +
find . -name '.pytest_cache' -type d -prune -exec rm -rf '{}' +
find . -name 'venv' -type d -prune -exec rm -rf '{}' +
find . -name '*x86_64*' -type d -prune -exec rm -rf '{}' +
find . -name 'cache' -type d -prune -exec rm -rf '{}' +
find . -name '.next' -type d -prune -exec rm -rf '{}' +
find . -name 'cdk.out' -type d -prune -exec rm -rf '{}' +
then on the other rsync is the best
rsync -avP target:~/src ./