Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Last active October 22, 2019 09:54
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 glowinthedark/8d8879735f8cb6cc45d90c415ee15cfb to your computer and use it in GitHub Desktop.
Save glowinthedark/8d8879735f8cb6cc45d90c415ee15cfb to your computer and use it in GitHub Desktop.
mac backup rsync home folder
/usr/local/bin/rsync --progress -av \
--exclude '.DS_Store*' \
--exclude .fseventsd \
--exclude '.Spotlight-V100*' \
--exclude '.TemporaryItems*' \
--exclude '.Trashes*' \
--exclude '.Trash*' \
--exclude 'tmp*' \
--exclude 'Application\ Support' \
--exclude '.PKInstallSandboxManager*' \
--exclude '.DocumentRevisions-V100*' \
--exclude 'Caches*' \
--exclude .cocoapods \
--exclude '.config/yarn/' \
--exclude '.cpan' \
--exclude '.flow-typed' \
--exclude .local \
--exclude node_modules \
--exclude '.cache*' \
--exclude '.metadata*' \
--exclude 'Saved Application State*' \
--exclude 'Logs*' \
--exclude 'DiagnosticReports*' \
--exclude 'CrashReporter*' \
--exclude '.journal*' \
--exclude '.journal_info_block*' \
--exclude 'lost+found*' \
--exclude '.com.apple.timemachine.donotpresent*' \
--exclude 'TheVolumeSettingsFolder*' \
--exclude '.hotfiles.btree*' \
--exclude '/private/var/db/dyld/dyld_*' \
--exclude '/dev/*' \
--exclude '.bash_sessions' \
--exclude '.android' \
--exclude '.node-modules' \
--exclude '.npm' \
--exclude '.nuget' \
--exclude '.nvm' \
--exclude '.vscode' \
--exclude 'Autosave Information' \
--exclude 'Library/Containers' \
--exclude 'Library/Group Containers' \
--exclude 'Library/Developer' \
--exclude 'Library/Logs' \
/Users/___YOURUSERNAME___/ /Volumes/Untitled/___YOUR_BACKUP_DRIVE___
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment