Skip to content

Instantly share code, notes, and snippets.

@joekiller
Created October 10, 2023 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joekiller/a6cb87db3a9e7646875456e4271e86a5 to your computer and use it in GitHub Desktop.
Save joekiller/a6cb87db3a9e7646875456e4271e86a5 to your computer and use it in GitHub Desktop.
Migrating macbooks

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 ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment