Skip to content

Instantly share code, notes, and snippets.

@blacktop
Last active June 24, 2023 23:56
Show Gist options
  • Save blacktop/62af67d82daf41205f18bd45885e818a to your computer and use it in GitHub Desktop.
Save blacktop/62af67d82daf41205f18bd45885e818a to your computer and use it in GitHub Desktop.
things to exclude from homedir rsync on osx
*.ipsw
*.nobackup
*.tmp
**/.atom
**/.cache
**/.cargo
**/.cocoapods
**/.config/yarn
**/.docker
**/.DS_Store
**/.eclipse
**/.electron
**/.electron-gyp
**/.expo
**/.fastlane
**/.fzf
**/.gimme
**/.gradle
**/.heroku
**/.lemminx
**/.local/share/containers
**/.local/share/NuGet
**/.local/share/nvim
**/.local/share/virtualenvs
**/.npm
**/.nuget
**/.nvm
**/.oh-my-zsh
**/.pyenv
**/.rustup
**/.tart
**/.tmux
**/.Trash
**/.vagrant.d/boxes
**/.vagrant.d/cache
**/.vscode-cpptools
**/.vscode-insiders
**/.vscode-oss
**/.vscode/extensions
**/Applications
**/Documents/VMs
**/Github/apple/swift
**/Github/blacktop/cgo-swift-demangle
**/Github/frida/frida
**/Github/llvm/llvm-project
**/Github/WebKit/WebKit
**/go
**/Library/Accounts
**/Library/Address?Book?Plug-Ins
**/Library/Application?Support/BraveSoftware
**/Library/Application?Support/Code
**/Library/Application?Support/discord
**/Library/Assistant
**/Library/Caches
**/Library/Calendars
**/Library/com.apple.nsurlsessiond
**/Library/Containers/com.apple.podcasts.*
**/Library/Containers/com.docker.docker
**/Library/Developer
**/Library/Developer/Xcode
**/Library/Group?Containers/*.groups.com.apple.podcasts
**/Library/Logs
**/Library/Mail
**/Library/Messages
**/Library/Mobile?Documents
**/node_modules
**/RE
**/test-caches
**/MochiDiffusion/models
**/tmp
@blacktop
Copy link
Author

blacktop commented Nov 25, 2019

$ caffeinate -s rsync -avz --exclude-from '/tmp/rsync-home-exclude-osx.txt' --delete $HOME /Volume/DRIVE
# =OR=
$ sudo caffeinate -s rsync -avW --inplace --exclude-from '/tmp/rsync-home-exclude-osx.txt' --delete $HOME /Volume/DRIVE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment